/* SIMHSYCN Phase 2 — Shared authentication shell */
body.simh-app.page-login.auth-page,
body.simh-app.page-customer_login.auth-page {
  background: #163b54 !important;
}

body.simh-app.auth-page .app-shell {
  min-height: 100vh;
}

body.simh-app .auth-stage {
  position: relative;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(102deg, rgba(14, 49, 70, .90) 0%, rgba(15, 78, 83, .66) 45%, rgba(14, 42, 62, .42) 100%),
    url("../../assets/images/auth/workspace-login.jpg") center / cover no-repeat;
}

body.simh-app .auth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 22%, rgba(45, 212, 191, .22), transparent 24rem),
    radial-gradient(circle at 88% 72%, rgba(56, 189, 248, .17), transparent 25rem);
}

body.simh-app .auth-brand-panel {
  max-width: 660px;
  padding: clamp(24px, 4vw, 48px);
  color: #f7fbff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  background: rgba(13, 48, 68, .34);
  box-shadow: 0 28px 80px rgba(6, 23, 34, .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.simh-app .auth-brand-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

body.simh-app .auth-brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #14958c, #2f7cc3);
  font-size: 13px;
  font-weight: 900;
}

body.simh-app .auth-brand-mark img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

body.simh-app .auth-brand-row strong {
  color: #ffffff !important;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -.025em;
}

body.simh-app .auth-brand-panel h1 {
  max-width: 720px;
  margin: 38px 0 16px;
  color: #ffffff !important;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

body.simh-app .auth-brand-panel p {
  max-width: 620px;
  margin: 0;
  color: rgba(242, 251, 255, .80) !important;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.7;
}

body.simh-app .auth-feature-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

body.simh-app .auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(248, 252, 255, .88);
  font-size: 13px;
  font-weight: 650;
}

body.simh-app .auth-feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 5px rgba(94, 234, 212, .11);
}

body.simh-app .auth-main {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

body.simh-app .auth-main .alert {
  margin-bottom: 14px !important;
  border-color: rgba(255,255,255,.34) !important;
  background: rgba(255,255,255,.92) !important;
}

body.simh-app .auth-form-card,
body.simh-app .login-card.auth-form-card {
  width: 100%;
  padding: clamp(24px, 4vw, 38px) !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 24px !important;
  color: #35506a !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 32px 90px rgba(7, 31, 46, .28) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.simh-app .auth-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 999px;
  color: #0f766e;
  background: #e7f6f3;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.simh-app .auth-form-card h2 {
  margin: 0 0 8px !important;
  color: #17324d !important;
  font-size: clamp(26px, 3vw, 34px) !important;
  font-weight: 800 !important;
  letter-spacing: -.045em !important;
}

body.simh-app .auth-form-card > p {
  margin-bottom: 24px;
  color: #6b7f94 !important;
}

body.simh-app .auth-form-card label {
  margin: 15px 0 7px !important;
  display: block;
  color: #3d5b73 !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

body.simh-app .auth-form-card input {
  min-height: 48px !important;
  border-color: #cbd9e5 !important;
  border-radius: 12px !important;
  color: #29455e !important;
  background: #fbfdff !important;
}

body.simh-app .auth-form-card input:focus {
  border-color: #17a39a !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12) !important;
}

body.simh-app .auth-form-card .actions,
body.simh-app .auth-actions {
  margin-top: 22px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
}

body.simh-app .auth-form-card .btn.primary {
  min-height: 46px !important;
  background: linear-gradient(135deg, #118b83, #2f72bd) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(30, 111, 141, .20) !important;
}

body.simh-app .auth-form-note {
  margin: 19px 0 0;
  padding-top: 17px;
  border-top: 1px solid #e4ebf1;
  color: #7a8ea1;
  font-size: 11.5px;
}

body.simh-app .auth-footer {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  right: clamp(24px, 5vw, 72px);
  bottom: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(241, 250, 255, .68);
  font-size: 11px;
}

@media (max-width: 980px) {
  body.simh-app .auth-stage {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 30px 18px 68px;
    background-position: 58% center;
  }

  body.simh-app .auth-brand-panel {
    display: none;
  }

  body.simh-app .auth-main {
    max-width: 520px;
    justify-self: center;
  }

  body.simh-app .auth-footer {
    left: 18px;
    right: 18px;
  }
}

@media (max-width: 520px) {
  body.simh-app .auth-stage {
    padding: 18px 12px 64px;
  }

  body.simh-app .auth-form-card,
  body.simh-app .login-card.auth-form-card {
    padding: 23px 18px !important;
    border-radius: 18px !important;
  }

  body.simh-app .auth-form-card .actions,
  body.simh-app .auth-actions {
    grid-template-columns: 1fr !important;
  }

  body.simh-app .auth-form-card .btn {
    width: 100% !important;
  }

  body.simh-app .auth-footer {
    justify-content: center;
    text-align: center;
  }

  body.simh-app .auth-footer span + span {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   Phase 2 authentication correction — show more of the background photograph
   -------------------------------------------------------------------------- */
body.simh-app .auth-stage::before {
  opacity: .34;
}

body.simh-app .auth-brand-panel {
  background: rgba(10, 35, 50, .20);
  border-color: rgba(255, 255, 255, .20);
  box-shadow: 0 24px 68px rgba(6, 23, 34, .16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.simh-app .auth-actions.auth-actions-single,
body.simh-app .auth-form-card .actions.auth-actions-single {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.simh-app .auth-actions.auth-actions-single .btn,
body.simh-app .auth-form-card .actions.auth-actions-single .btn {
  width: 100% !important;
}

/* SIMHSYCN Phase 8 — public-site links from authentication screens */
.auth-form-card .auth-back-site{margin-top:12px;display:inline-flex;align-items:center;color:var(--simh-primary)!important;font-size:11px;font-weight:850}.auth-form-card .auth-back-site::before{content:"←";margin-right:6px}.auth-form-card .auth-back-site:hover{text-decoration:underline}
/* Phase 9 configurable authentication image */
body.simh-app .auth-stage{background:linear-gradient(102deg,rgba(14,49,70,.76) 0%,rgba(15,78,83,.46) 45%,rgba(14,42,62,.28) 100%),var(--simh-auth-image,url("../../assets/images/auth/workspace-login.jpg")) center/cover no-repeat!important}
