/* Adorn Boys Hostel SHMS — Auth Screens
 * Editorial Architectural Split Layout | SANFI SYS (#C8102E & #012245)
 */

.auth-body {
  min-height: 100vh;
  background: var(--canvas);
  display: grid;
  grid-template-columns: 1.02fr 1fr;
}

.auth-hero {
  background-color: var(--brand-secondary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  color: #dbe4ef;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 14px;
  border-radius: 7px;
}

.auth-brand h1 {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.auth-brand span {
  font-size: 11.5px;
  color: #9bb0ca;
  display: block;
  margin-top: 1px;
}

.auth-hero-main {
  margin: 32px 0;
  max-width: 460px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #f3a4b1;
  margin-bottom: 14px;
}

.auth-eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--brand-primary);
}

.auth-hero-main h2 {
  font-size: 27px;
  font-weight: 800;
  color: #fff;
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.auth-hero-main p {
  font-size: 13.25px;
  color: #b4c4d8;
  line-height: 1.6;
  margin-bottom: 26px;
}

.auth-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.auth-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  padding: 11px 12px;
}

.auth-stat-box strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.auth-stat-box span {
  font-size: 11px;
  color: #8ea5c2;
}

.auth-feature-list {
  display: grid;
  gap: 10px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f3a4b1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth-feature-icon svg {
  width: 15px;
  height: 15px;
}

.auth-feature-item strong {
  display: block;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.auth-feature-item span {
  font-size: 11.5px;
  color: #93a9c5;
}

.auth-hero-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-size: 11px;
  color: #869db9;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-hero-footer strong {
  color: #e2e8f0;
}

/* Right Form Surface */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  background: var(--surface);
}

.auth-card {
  width: 100%;
  max-width: 410px;
}

.auth-card-head {
  margin-bottom: 22px;
}

.auth-card-head h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.auth-card-head p {
  font-size: 12.75px;
  color: var(--ink-500);
  margin-top: 4px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 58px;
}

.pw-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ink-500);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}

.pw-toggle:hover {
  background: var(--surface-hover);
  color: var(--ink-900);
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.25px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-600);
  cursor: pointer;
}

.auth-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 9.5px 14px;
  font-size: 13.25px;
}

.auth-msg {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 14px;
  display: none;
}

.auth-msg.show { display: block; }
.auth-msg.error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.auth-msg.success { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-border); }
.auth-msg.info { background: var(--brand-secondary-soft); color: var(--ink-900); border: 1px solid var(--brand-secondary-border); }

.demo-roles-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.demo-roles-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.demo-role-grid {
  display: grid;
  gap: 7px;
}

.demo-role-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8.5px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-subtle);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, background 0.12s;
}

.demo-role-btn:hover {
  border-color: var(--brand-primary);
  background: var(--surface-hover);
}

.demo-role-btn strong {
  display: block;
  font-size: 12.25px;
  color: var(--ink-900);
}

.demo-role-btn span {
  font-size: 11px;
  color: var(--ink-500);
  font-family: var(--font-mono);
}

.auth-footer-links {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--ink-500);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.strength-meter {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.step-pill {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--ink-500);
}

.step-pill.active {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-color: var(--brand-primary-border);
}

.step-pill.done {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-border);
}

/* Topbar Signed-in User Chip */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3.5px 10px 3.5px 4px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-900);
}

.user-avatar {
  width: 23px;
  height: 23px;
  border-radius: 5px;
  background: var(--brand-secondary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .auth-body {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    padding: 28px 24px;
  }
  .auth-hero-main {
    margin: 20px 0;
  }
  .auth-hero-main h2 {
    font-size: 22px;
  }
}
