.auth-page { min-height: 100vh; background: #f5f7fa; }
.auth-page .topbar { background: #fff; }
.auth-page .main-content { max-width: none; padding: 28px; }
.auth-page .footer { display: none; }

.auth-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  overflow: hidden;
  border: 1px solid rgba(119,155,193,.25);
  border-radius: 32px;
  background: #fff;
  box-shadow: rgba(16,55,132,.06) 0 24px 60px;
}

.auth-intro {
  min-height: 620px;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(155deg, #6f94bb 0%, #8eb5d1 52%, #caddeb 100%);
}
.auth-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.96); color: #2597d0; font-size: 25px; font-weight: 800; }
.auth-kicker { margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.auth-intro h1 { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(52px, 5vw, 74px); font-weight: 600; line-height: .94; letter-spacing: -.055em; }
.auth-intro p { max-width: 520px; margin: 28px 0 0; color: rgba(255,255,255,.92); font-size: 18px; line-height: 1.5; }
.auth-intro small { color: rgba(255,255,255,.82); font-size: 13px; }

.auth-page .auth-card {
  align-self: stretch;
  width: 100%;
  min-width: 0;
  padding: 64px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.auth-card .eyebrow { margin-bottom: 14px; }
.auth-card h2 { margin: 0; font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -.04em; }
.auth-card > .muted { margin: 10px 0 0; font-size: 16px; }
.auth-card form { display: grid; gap: 20px; margin-top: 38px; }
.auth-card .field-label { display: grid; gap: 8px; color: #45454f; font-size: 13px; font-weight: 600; }
.auth-card .field-label input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #dcdfe4; border-radius: 12px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.auth-card .field-label input:focus { border-color: #2597d0 !important; outline: none; box-shadow: 0 0 0 4px rgba(37,151,208,.11); }
.remember-row { display: flex; align-items: center; gap: 10px; width: max-content; color: #60606c; font-size: 13px; cursor: pointer; }
.remember-row input { width: 17px; height: 17px; margin: 0; accent-color: #070709; }
.auth-submit { width: 100%; min-height: 52px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.auth-submit span { font-size: 18px; }
.auth-help { margin: 28px 0 0; color: #8b8b8b; font-size: 12px; text-align: center; }
.validation ul { margin: 0; padding-left: 18px; }

.user-table-head, .user-table-row { display: grid; grid-template-columns: 1.6fr 1.2fr .8fr .7fr auto; gap: 18px; align-items: center; padding: 15px 12px; }
.user-table-head { border-bottom: 1px solid #ddd; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.user-table-row { border-bottom: 1px solid #eee; }
.user-table-row > span:first-child, .user-table-row > span:nth-child(2) { display: grid; }
.user-table-row small { color: var(--muted); }
.status-pill { display: inline-block; width: max-content; padding: 5px 9px; border-radius: 99px; font-size: 12px; }
.status-pill.active { background: #e2f3e9; color: #17623b; }
.status-pill.inactive { background: #eee; color: #666; }

@media (max-width: 900px) {
  .auth-page .main-content { padding: 18px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: 300px; padding: 34px; }
  .auth-intro h1 { font-size: 48px; }
  .auth-intro p { margin-top: 18px; font-size: 16px; }
  .auth-intro small { display: none; }
  .auth-page .auth-card { padding: 42px 34px; }
  .user-table-head { display: none; }
  .user-table-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .auth-page .topbar { position: static; }
  .auth-shell { border-radius: 22px; }
  .auth-intro { min-height: 235px; }
  .auth-intro h1 { font-size: 40px; }
  .auth-intro p { display: none; }
  .auth-page .auth-card { padding: 36px 24px; }
  .auth-card h2 { font-size: 38px; }
}

.security-page { background: #f6f8fa; }
.security-page .main-content { padding-top: 34px; }
.security-page .back { margin-bottom: 20px; }
.security-shell { max-width: 920px; min-height: 560px; display: grid; grid-template-columns: .8fr 1.2fr; margin: 0 auto; overflow: hidden; border: 1px solid #e1e5e9; border-radius: 26px; background: #fff; box-shadow: 0 22px 55px rgba(28,54,78,.07); }
.security-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 42px; background: linear-gradient(155deg, #668eb6, #9dc0d8); color: #fff; }
.security-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.94); color: #377ba6; font-size: 25px; font-weight: 800; }
.security-intro .eyebrow { color: rgba(255,255,255,.78); }
.security-intro h1 { margin: 0; font-family: var(--font-display); font-size: 40px; line-height: 1.02; letter-spacing: -.04em; }
.security-intro p { margin: 17px 0 0; color: rgba(255,255,255,.9); font-size: 14px; line-height: 1.55; }
.security-intro ul { display: grid; gap: 9px; margin: 28px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.9); font-size: 13px; }
.security-intro li::before { content: "✓"; margin-right: 9px; font-weight: 700; }
.security-form { align-self: center; padding: 52px 56px; }
.security-form h2 { margin: 0; font-family: var(--font-display); font-size: 38px; font-weight: 600; letter-spacing: -.04em; }
.security-form > p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.security-form form { display: grid; gap: 18px; margin-top: 30px; }
.security-form .field-label { display: grid; gap: 7px; color: #45454f; font-size: 13px; font-weight: 600; }
.security-form .field-label input { height: 50px; }
.security-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 7px; }
.security-actions .button { min-width: 130px; }
@media (max-width: 760px) { .security-shell { grid-template-columns: 1fr; }.security-intro { min-height: 280px; }.security-form { padding: 40px 30px; } }
@media (max-width: 480px) { .security-page .main-content { padding-top: 20px; }.security-shell { border-radius: 20px; }.security-intro { padding: 30px; }.security-form { padding: 32px 22px; }.security-actions { flex-direction: column-reverse; }.security-actions .button { width: 100%; } }
