/* =====================================================
   LOGIN PAGE
===================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.login-page {
  min-height: 100vh;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background: #eef2f1;

  color: #243238;
}


/* =====================================================
   MAIN LAYOUT
===================================================== */

.login-shell {
  min-height: 100vh;

  display: grid;

  grid-template-columns:
    minmax(420px, 0.95fr)
    minmax(500px, 1.05fr);
}


/* =====================================================
   LEFT BRAND PANEL
===================================================== */

.login-brand-panel {
  position: relative;

  display: flex;
  flex-direction: column;

  justify-content: space-between;

  min-height: 100vh;

  padding:
    52px
    58px
    38px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #103f3d 0%,
      #155b53 58%,
      #197766 100%
    );

  color: #ffffff;
}


/* =====================================================
   DECORATIVE BACKGROUND
===================================================== */

.login-brand-panel::before {
  content: "";

  position: absolute;

  width: 460px;
  height: 460px;

  top: -190px;
  right: -180px;

  border-radius: 50%;

  background:
    rgba(
      255,
      255,
      255,
      0.055
    );
}


.login-brand-panel::after {
  content: "";

  position: absolute;

  width: 340px;
  height: 340px;

  bottom: -180px;
  left: -150px;

  border-radius: 50%;

  background:
    rgba(
      255,
      255,
      255,
      0.04
    );
}


.login-brand-content,
.login-brand-footer {
  position: relative;

  z-index: 2;
}


/* =====================================================
   BRAND TOP
===================================================== */

.login-brand-top {
  display: flex;

  align-items: center;

  gap: 14px;
}


.login-brand-mark {
  width: 48px;
  height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 48px;

  border-radius: 13px;

  background: #ffffff;

  color: #155b53;

  font-size: 17px;
  font-weight: 800;

  letter-spacing: 0.02em;

  box-shadow:
    0 10px 28px
    rgba(
      0,
      0,
      0,
      0.12
    );
}


.login-brand-company {
  display: block;

  margin-bottom: 3px;

  font-size: 13px;
  font-weight: 700;

  color:
    rgba(
      255,
      255,
      255,
      0.8
    );
}


.login-brand-product {
  display: block;

  font-size: 17px;
  font-weight: 750;

  color: #ffffff;
}


/* =====================================================
   BRAND MESSAGE
===================================================== */

.login-brand-message {
  max-width: 580px;

  margin-top: 100px;
}


.login-brand-eyebrow {
  display: inline-block;

  margin-bottom: 15px;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.13em;

  text-transform: uppercase;

  color:
    rgba(
      255,
      255,
      255,
      0.7
    );
}


.login-brand-message h1 {
  margin: 0;

  max-width: 560px;

  font-size:
    clamp(
      38px,
      4vw,
      58px
    );

  line-height: 1.05;

  letter-spacing: -0.035em;

  font-weight: 750;

  color: #ffffff;
}


.login-brand-message p {
  max-width: 500px;

  margin:
    22px
    0
    0;

  font-size: 16px;

  line-height: 1.65;

  color:
    rgba(
      255,
      255,
      255,
      0.72
    );
}


/* =====================================================
   FEATURE LIST
===================================================== */

.login-feature-list {
  display: grid;

  gap: 11px;

  max-width: 520px;

  margin-top: 48px;
}


.login-feature {
  display: grid;

  grid-template-columns:
    40px
    1fr;

  gap: 13px;

  align-items: center;

  padding: 13px 14px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.11
    );

  border-radius: 11px;

  background:
    rgba(
      255,
      255,
      255,
      0.055
    );

  backdrop-filter:
    blur(4px);
}


.login-feature-icon {
  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background:
    rgba(
      255,
      255,
      255,
      0.12
    );

  color: #ffffff;

  font-size: 13px;
  font-weight: 800;
}


.login-feature strong {
  display: block;

  margin-bottom: 3px;

  font-size: 13px;
  font-weight: 700;

  color: #ffffff;
}


.login-feature small {
  display: block;

  font-size: 11px;

  line-height: 1.4;

  color:
    rgba(
      255,
      255,
      255,
      0.65
    );
}


/* =====================================================
   BRAND FOOTER
===================================================== */

.login-brand-footer {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-top: 50px;

  padding-top: 22px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.12
    );

  font-size: 11px;

  color:
    rgba(
      255,
      255,
      255,
      0.58
    );
}


/* =====================================================
   RIGHT PANEL
===================================================== */

.login-form-panel {
  min-height: 100vh;

  display: flex;

  align-items: center;
  justify-content: center;

  padding:
    48px
    60px;

  background: #f5f7f7;
}


/* =====================================================
   LOGIN CARD
===================================================== */

.login-card {
  width: 100%;
  max-width: 490px;

  padding:
    38px
    40px;

  border:
    1px solid
    #e0e6e4;

  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 18px 55px
    rgba(
      24,
      42,
      46,
      0.08
    );
}


/* =====================================================
   MOBILE BRAND
===================================================== */

.login-mobile-brand {
  display: none;

  align-items: center;

  gap: 12px;

  margin-bottom: 28px;
}


.login-mobile-brand strong {
  display: block;

  margin-bottom: 2px;

  font-size: 14px;

  color: #25343a;
}


.login-mobile-brand span {
  display: block;

  font-size: 11px;

  color: #748287;
}


/* =====================================================
   HEADING
===================================================== */

.login-heading {
  margin-bottom: 26px;
}


.login-eyebrow {
  display: inline-block;

  margin-bottom: 8px;

  color: #167567;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


.login-heading h2 {
  margin: 0;

  color: #17262d;

  font-size: 31px;
  font-weight: 750;

  letter-spacing: -0.02em;
}


.login-heading p {
  margin:
    8px
    0
    0;

  color: #718086;

  font-size: 13px;

  line-height: 1.5;
}


/* =====================================================
   ERROR
===================================================== */

.login-error {
  display: grid;

  grid-template-columns:
    34px
    1fr;

  gap: 11px;

  align-items: flex-start;

  margin-bottom: 18px;

  padding: 13px;

  border:
    1px solid
    #efcaca;

  border-radius: 9px;

  background: #fff5f5;
}


.login-error-icon {
  width: 31px;
  height: 31px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: #b83232;

  color: #ffffff;

  font-size: 14px;
  font-weight: 800;
}


.login-error strong {
  display: block;

  margin-bottom: 3px;

  color: #8f2727;

  font-size: 12px;
}


.login-error p {
  margin: 2px 0;

  color: #985050;

  font-size: 11px;

  line-height: 1.4;
}


/* =====================================================
   MICROSOFT BUTTON
===================================================== */

.microsoft-login-btn {
  width: 100%;

  min-height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 11px;

  padding:
    0
    16px;

  border:
    1px solid
    #d5dddb;

  border-radius: 9px;

  background: #ffffff;

  color: #25343a;

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}


.microsoft-login-btn:hover {
  border-color: #9dbab4;

  background: #fbfdfc;

  box-shadow:
    0 5px 15px
    rgba(
      26,
      84,
      73,
      0.07
    );
}


/* =====================================================
   MICROSOFT ICON
===================================================== */

.microsoft-icon {
  width: 17px;
  height: 17px;

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  grid-template-rows:
    repeat(2, 1fr);

  gap: 2px;
}


.microsoft-icon span {
  display: block;
}


.microsoft-icon span:nth-child(1) {
  background: #f35325;
}


.microsoft-icon span:nth-child(2) {
  background: #81bc06;
}


.microsoft-icon span:nth-child(3) {
  background: #05a6f0;
}


.microsoft-icon span:nth-child(4) {
  background: #ffba08;
}


/* =====================================================
   MICROSOFT HELPER
===================================================== */

.microsoft-helper {
  margin:
    8px
    0
    0;

  text-align: center;

  color: #879397;

  font-size: 10px;
}


/* =====================================================
   DIVIDER
===================================================== */

.login-divider {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  margin:
    24px
    0;
}


.login-divider::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  height: 1px;

  background: #e3e8e7;
}


.login-divider span {
  position: relative;

  padding:
    0
    10px;

  background: #ffffff;

  color: #899598;

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}


/* =====================================================
   FORM
===================================================== */

.login-form {
  display: grid;

  gap: 16px;
}


.input-group {
  display: grid;

  gap: 6px;
}


.input-group label {
  color: #35464c;

  font-size: 11px;
  font-weight: 700;
}


.input-group input {
  width: 100%;

  height: 46px;

  padding:
    0
    13px;

  border:
    1px solid
    #d5dddb;

  border-radius: 8px;

  outline: none;

  background: #ffffff;

  color: #25343a;

  font-size: 13px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}


.input-group input::placeholder {
  color: #a0aaad;
}


.input-group input:hover {
  border-color: #b6c5c1;
}


.input-group input:focus {
  border-color: #167567;

  box-shadow:
    0 0 0 3px
    rgba(
      22,
      117,
      103,
      0.1
    );
}


/* =====================================================
   PASSWORD
===================================================== */

.password-field {
  position: relative;
}


.password-field input {
  padding-right: 68px;
}


.password-toggle {
  position: absolute;

  top: 50%;
  right: 7px;

  transform:
    translateY(-50%);

  min-width: 49px;
  height: 31px;

  padding:
    0
    9px;

  border: none;

  border-radius: 6px;

  background: #f0f4f3;

  color: #53656a;

  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
}


.password-toggle:hover {
  background: #e5efec;

  color: #167567;
}


/* =====================================================
   PASSWORD LOGIN BUTTON
===================================================== */

.password-login-btn {
  width: 100%;

  min-height: 47px;

  margin-top: 2px;

  border:
    1px solid
    #167567;

  border-radius: 9px;

  background: #167567;

  color: #ffffff;

  font-size: 13px;
  font-weight: 750;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}


.password-login-btn:hover {
  background: #115f55;

  border-color: #115f55;

  box-shadow:
    0 8px 20px
    rgba(
      17,
      95,
      85,
      0.17
    );
}


.password-login-btn:active {
  transform:
    translateY(1px);
}


/* =====================================================
   SECURITY NOTE
===================================================== */

.login-security-note {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 24px;

  padding-top: 18px;

  border-top: 1px solid #e8eceb;
}


.security-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #167567;

  box-shadow:
    0 0 0 3px
    rgba(
      22,
      117,
      103,
      0.1
    );
}


.login-security-note p {
  margin: 0;

  color: #879397;

  font-size: 10px;
}


/* =====================================================
   LAPTOP
===================================================== */

@media (max-width: 1180px) {

  .login-shell {
    grid-template-columns:
      0.9fr
      1.1fr;
  }


  .login-brand-panel {
    padding:
      42px
      40px
      32px;
  }


  .login-brand-message {
    margin-top: 75px;
  }


  .login-brand-message h1 {
    font-size: 42px;
  }


  .login-form-panel {
    padding:
      40px;
  }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .login-shell {
    display: block;
  }


  .login-brand-panel {
    display: none;
  }


  .login-form-panel {
    min-height: 100vh;

    padding:
      32px
      20px;
  }


  .login-card {
    max-width: 500px;
  }


  .login-mobile-brand {
    display: flex;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 520px) {

  .login-form-panel {
    padding:
      16px;
  }


  .login-card {
    padding:
      27px
      22px;

    border-radius: 14px;
  }


  .login-heading h2 {
    font-size: 27px;
  }


  .login-brand-mark {
    width: 43px;
    height: 43px;

    flex-basis: 43px;
  }

}


/* =====================================================
   DESKTOP COMPACT SCALE
   Approximate 85% visual size
===================================================== */

@media (min-width: 901px) {

  .login-brand-panel {
    padding: 42px 48px 30px;
  }

  .login-brand-mark {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
    border-radius: 11px;
    font-size: 14px;
  }

  .login-brand-company {
    font-size: 11px;
  }

  .login-brand-product {
    font-size: 14px;
  }

  .login-brand-message {
    margin-top: 70px;
    max-width: 500px;
  }

  .login-brand-eyebrow {
    font-size: 9px;
    margin-bottom: 12px;
  }

  .login-brand-message h1 {
    font-size: 40px;
    max-width: 480px;
  }

  .login-brand-message p {
    font-size: 13px;
    max-width: 430px;
    margin-top: 17px;
  }

  .login-feature-list {
    margin-top: 34px;
    gap: 9px;
    max-width: 450px;
  }

  .login-feature {
    grid-template-columns: 34px 1fr;
    gap: 11px;
    padding: 10px 12px;
  }

  .login-feature-icon {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .login-feature strong {
    font-size: 11px;
  }

  .login-feature small {
    font-size: 9px;
  }

  .login-brand-footer {
    font-size: 9px;
    padding-top: 17px;
  }

  .login-form-panel {
    padding: 35px 50px;
  }

  .login-card {
    max-width: 420px;
    padding: 31px 34px;
    border-radius: 15px;
  }

  .login-heading {
    margin-bottom: 21px;
  }

  .login-eyebrow {
    font-size: 9px;
  }

  .login-heading h2 {
    font-size: 26px;
  }

  .login-heading p {
    font-size: 11px;
  }

  .microsoft-login-btn {
    min-height: 41px;
    font-size: 11px;
  }

  .microsoft-helper {
    font-size: 9px;
  }

  .login-divider {
    margin: 19px 0;
  }

  .login-divider span {
    font-size: 9px;
  }

  .login-form {
    gap: 13px;
  }

  .input-group {
    gap: 5px;
  }

  .input-group label {
    font-size: 10px;
  }

  .input-group input {
    height: 40px;
    font-size: 11px;
    padding: 0 11px;
  }

  .password-field input {
    padding-right: 60px;
  }

  .password-toggle {
    height: 27px;
    min-width: 44px;
    font-size: 9px;
  }

  .password-login-btn {
    min-height: 41px;
    font-size: 11px;
  }

  .login-security-note {
    margin-top: 19px;
    padding-top: 15px;
  }

  .login-security-note p {
    font-size: 9px;
  }

}