/* GreenBiz Executive Login — approved automation-solutions design.
 * Visual/login-method UI only. Existing password authentication endpoint is unchanged.
 */
.executive-login-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 28px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 194, 177, .08), transparent 32%),
    radial-gradient(circle at 88% 90%, rgba(37, 104, 239, .08), transparent 35%),
    #eef6fb;
  color: #0b2555;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.executive-login-shell {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 56px));
  min-height: min(760px, calc(100svh - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  overflow: hidden;
  border: 1px solid rgba(166, 195, 224, .7);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(12, 43, 86, .16);
}

.executive-login-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 48px 42px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(4, 28, 66, .98), rgba(5, 77, 122, .93) 55%, rgba(0, 129, 127, .88)),
    #062c5c;
}
.executive-login-brand::before,
.executive-login-brand::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}
.executive-login-brand::before {
  width: 520px;
  height: 520px;
  right: -220px;
  top: -160px;
  background: radial-gradient(circle, rgba(0, 191, 255, .23), transparent 68%);
}
.executive-login-brand::after {
  width: 440px;
  height: 440px;
  left: -260px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(0, 224, 177, .18), transparent 68%);
}

.login-brand-content {
  position: relative;
  z-index: 3;
  max-width: 470px;
}
.login-brand-logo {
  display: block;
  width: 210px;
  height: auto;
  margin: 0 0 42px;
  padding: 8px 12px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(0, 24, 58, .18);
}
.login-eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .22em;
  font-weight: 850;
  color: #4dd9c6;
}
.executive-login-brand h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 780;
}
.executive-login-brand h1 strong {
  color: #35e0c4;
  font-weight: inherit;
}
.executive-login-brand p {
  max-width: 420px;
  margin: 0;
  color: rgba(232, 247, 255, .9);
  font-size: 15px;
  line-height: 1.7;
}

.login-feature-list {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.login-feature-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #8cdcff;
  background: rgba(28, 128, 242, .26);
  border: 1px solid rgba(117, 202, 255, .24);
}
.login-feature-icon-green { color: #40e4a7; background: rgba(0, 176, 127, .2); }
.login-feature-icon-teal { color: #9bf3c5; background: rgba(0, 169, 133, .22); }
.login-feature-icon svg { width: 23px; height: 23px; }
.login-feature b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.login-feature small { display: block; color: rgba(220, 241, 255, .72); font-size: 11px; line-height: 1.45; }

.login-automation-visual {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  transform: none;
  opacity: 1;
  box-shadow: none;
}
.login-automation-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.03);
}
.login-visual-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 30, 68, .12), rgba(4, 30, 68, .42)),
    linear-gradient(90deg, rgba(4, 28, 66, .88) 0%, rgba(4, 28, 66, .58) 34%, rgba(4, 28, 66, .08) 72%, rgba(4, 28, 66, .18) 100%);
  pointer-events: none;
}

.executive-login-card {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #fff, #fafdff);
}
.login-card-inner {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 54px 42px;
  box-sizing: border-box;
}
.login-card-topline {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.login-card-logo {
  display: block;
  width: min(100%, 230px);
  height: auto;
}
.executive-login-card .login-eyebrow {
  color: #1c69df;
  text-align: center;
  margin-bottom: 10px;
}
.executive-login-card h2 {
  margin: 0 0 8px;
  text-align: center;
  color: #0b2555;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.login-intro {
  margin: 0 auto 24px;
  text-align: center;
  color: #7286a5;
  font-size: 13px;
  line-height: 1.55;
}

.login-method-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid #dce8f5;
  border-radius: 13px;
  background: #f4f8fc;
}
.login-method {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6d82a0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.login-method.is-active {
  color: #1265df;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 93, 169, .1);
}
.login-method:focus-visible,
.password-toggle:focus-visible,
.login-submit:focus-visible,
.pin-inputs input:focus-visible {
  outline: 3px solid rgba(28, 105, 223, .18);
  outline-offset: 2px;
}
.login-method-panel[hidden] { display: none; }

.executive-login-card label {
  display: block;
  margin: 0 0 8px;
  color: #1c3762;
  font-size: 12px;
  font-weight: 800;
}
.executive-login-card input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  border: 1px solid #d4e2f1;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #0b2555;
  outline: 0;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.executive-login-card input::placeholder { color: #a1b2c9; }
.executive-login-card input:focus {
  border-color: #1b70ea;
  box-shadow: 0 0 0 4px rgba(27, 112, 234, .1);
}
.password-label-row { margin-top: 19px; }
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.password-toggle {
  position: absolute;
  right: 9px;
  top: 9px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1769df;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.login-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  margin-top: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  background: linear-gradient(135deg, #1f72ec, #0758d4);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(20, 99, 220, .2);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.login-submit:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 17px 32px rgba(20, 99, 220, .25); }
.login-submit-disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }

.pin-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid #dce8f5;
  border-radius: 12px;
  background: #f7fbff;
}
.pin-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #1e6de4;
  background: #e7f0ff;
}
.pin-icon svg { width: 20px; height: 20px; }
.pin-intro b { display: block; color: #17365f; font-size: 12px; margin-bottom: 2px; }
.pin-intro small { display: block; color: #7890af; font-size: 10px; line-height: 1.45; }
.pin-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.pin-inputs input {
  height: 54px;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 850;
}
.pin-coming-soon {
  margin: 11px 0 0;
  text-align: center;
  color: #8a9db7;
  font-size: 10px;
  line-height: 1.5;
}

.login-security-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 13px;
  border: 1px solid #dce9f6;
  border-radius: 12px;
  background: #f8fbff;
}
.login-security-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #1a67dc;
  background: #e6f0ff;
  border-radius: 9px;
}
.login-security-icon svg { width: 17px; height: 17px; }
.login-security-row b { display: block; color: #284569; font-size: 11px; }
.login-security-row small { display: block; color: #8498b2; font-size: 9px; margin-top: 2px; }
.login-help {
  margin: 17px 0 14px;
  text-align: center;
  color: #8a9ab0;
  font-size: 10px;
  line-height: 1.5;
}
.login-status {
  padding-top: 13px;
  border-top: 1px solid #e4edf6;
  text-align: center;
  color: #9aabc0;
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .12em;
  font-weight: 800;
}
.login-status span { padding: 0 5px; color: #17a887; }

@media (max-width: 980px) {
  .executive-login-page { padding: 18px; }
  .executive-login-shell { grid-template-columns: minmax(0, 1fr) minmax(380px, .88fr); }
  .executive-login-brand { padding: 38px 34px; }
  .login-brand-logo { margin-bottom: 32px; }
  .executive-login-brand h1 { font-size: 42px; }
  .login-automation-visual { inset: 0; width: 100%; height: 100%; right: auto; bottom: auto; }
  .login-card-inner { padding: 38px 34px; }
}

@media (max-width: 760px) {
  /* Mobile login is intentionally card-only. The automation hero is desktop-only. */
  .executive-login-brand {
    display: none;
  }
  .executive-login-shell {
    min-height: 0;
  }

  .executive-login-page {
    padding: 16px 0 24px;
    background:
      radial-gradient(circle at 8% 0, rgba(28, 105, 223, .1), transparent 35%),
      linear-gradient(180deg, #edf5fb 0%, #f7fbff 100%);
  }
  .executive-login-shell {
    width: 100%;
    min-height: 0;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .login-brand-content,
  .login-automation-visual {
    display: none;
  }
  .executive-login-card {
    position: relative;
    z-index: 2;
    display: block;
    width: calc(100% - 24px);
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid #d8e6f3;
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(13, 55, 99, .11);
  }
  .login-card-inner { padding: 30px 22px 24px; }
  .login-card-topline { margin-bottom: 22px; }
  .login-card-logo { width: min(100%, 215px); }
  .executive-login-card h2 { font-size: 30px; }
  .login-intro { margin-bottom: 22px; }
  .login-method-switch { margin-bottom: 20px; }
  .executive-login-card input { height: 54px; font-size: 15px; }
  .login-submit { min-height: 55px; border-radius: 13px; font-size: 15px; }
  .pin-inputs { gap: 7px; }
  .pin-inputs input { height: 54px; }
}

@media (max-width: 390px) {
  .executive-login-card { width: calc(100% - 18px); border-radius: 22px; }
  .login-card-inner { padding: 27px 17px 22px; }
  .login-card-logo { width: min(100%, 198px); }
  .executive-login-card h2 { font-size: 28px; }
  .pin-inputs { gap: 5px; }
  .pin-inputs input { height: 50px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit { transition: none; }
}
