/* Login / register / access-denied / profile pages (Views/Shared/_AuthLayout.cshtml).
   Fixed light green/gold theme matching the public landing page and platform.css -
   no dark mode, matches the Mīqāt marketing design system. */

:root {
  --color-bg: #fcfaf6;
  --color-surface: #ffffff;
  --color-surface-2: #fbf6ea;
  --color-text: #14241c;
  --color-muted: #4c6057;
  --color-divider: #e8e2d6;
  --color-section: #eff7f2;

  --color-accent: #146c4c;
  --color-accent-100: #eff7f2;
  --color-accent-200: #dbede3;
  --color-accent-300: #6db494;
  --color-accent-600: #0e5139;
  --color-accent-700: #0a3a29;

  --gold: #c29a4a;
  --gold-soft: #f3e6c8;

  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(20, 36, 28, .06);
  --shadow-md: 0 8px 24px rgba(20, 36, 28, .08);
  --shadow-lg: 0 20px 60px rgba(20, 36, 28, .14);
}

.auth-body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Manrope", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.auth-body .bn { font-family: "Hind Siliguri", inherit; }
.auth-body a { color: var(--color-accent); text-decoration: none; }
.auth-body a:hover { color: var(--color-accent-600); }

.p-lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--color-divider);
}
.p-lang-toggle a {
  cursor: pointer; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: var(--color-muted);
}
.p-lang-toggle a.active { background: var(--color-accent); color: #fff; }

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-side {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: #1a1510;
}
.auth-side-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.auth-side-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,8,.82) 0%, rgba(12,10,8,.55) 30%, rgba(12,10,8,0) 58%, rgba(12,10,8,0) 86%, rgba(12,10,8,.45) 100%);
}
.auth-side-inner {
  position: relative; height: 100%; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(28px, 3.5vw, 48px); color: #fff; gap: clamp(28px, 5vh, 56px);
}

.auth-brand { display: flex; align-items: center; gap: 11px; color: #fff; align-self: flex-start; }
.auth-brand .brand-mark {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; font-size: 21px; color: var(--gold-soft); flex: none;
}
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.auth-brand-name { font-family: "Marcellus", serif; letter-spacing: .16em; font-size: 18px; color: #fff; }
.auth-brand-tagline { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-top: 3px; white-space: nowrap; }

.auth-side-copy { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.auth-side-copy h1 {
  margin: 0; font-family: "Marcellus", serif; font-weight: 400; font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.auth-side-copy > p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.88); max-width: 440px; }

.auth-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.auth-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 8px 13px;
  border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; color: #fff;
}
.auth-pill .check { color: var(--gold-soft); }

.auth-side-footer {
  margin-top: auto; font-size: 12.5px; color: rgba(255,255,255,.85);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.auth-main {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 40px) clamp(28px, 5vw, 72px); background: var(--color-bg);
}
.auth-main-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-back-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--color-muted); padding: 8px 0;
}
.auth-back-link:hover { color: var(--color-text); }

.auth-main-inner { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }

.auth-main-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #7b8d84;
}
.auth-main-footer i { margin-right: 4px; }
.auth-main-footer a { color: var(--color-muted); font-weight: 600; }
.auth-main-footer a:hover { color: var(--color-text); }

/* Auth form card - shared by Login/Register/ForgotPassword/ResetPassword/ChangePassword/Profile */
.auth-card { width: 100%; max-width: 420px; }
.auth-card h3, .auth-card h2 {
  margin: 0; font-family: "Marcellus", serif; font-weight: 400; font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1; color: var(--color-text);
}
.auth-card .text-muted { margin: 10px 0 0; font-size: 15.5px; color: var(--color-muted) !important; line-height: 1.55; }

.auth-card .form-label { margin-top: 28px; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--color-text); display: block; }
.auth-card .mb-3:first-of-type .form-label { margin-top: 32px; }

.auth-card .form-control {
  background: #fff; border: 1.5px solid var(--color-divider); color: var(--color-text);
  border-radius: var(--radius-md); height: 52px; padding: 0 14px; font-size: 15.5px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card .form-control:focus {
  background: #fff; color: var(--color-text); border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(20, 108, 76, .12);
}
.auth-card textarea.form-control { height: auto; padding: 12px 14px; }
.auth-card .form-control.input-invalid { border-color: #e0917f; }

.auth-card .invalid-feedback,
.auth-card .text-danger { color: #b3423a; font-size: 12.5px; }

.auth-card a { font-weight: 600; }

/* Icon-prefixed input (email/password) - the icon sits inside the same bordered box as
   the input rather than as separate markup, so focus/error styling on .auth-input-wrap
   drives both the border and the icon color together. */
.auth-input-wrap {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px;
  background: #fff; border: 1.5px solid var(--color-divider); border-radius: var(--radius-md);
  transition: border-color .15s, box-shadow .15s;
}
.auth-input-wrap:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(20, 108, 76, .12); }
.auth-input-wrap.input-invalid { border-color: #e0917f; }
.auth-input-wrap .auth-input-icon { flex: none; color: #7b8d84; display: flex; }
.auth-input-wrap .form-control {
  flex: 1; min-width: 0; border: 0; height: 100%; padding: 0; box-shadow: none !important; background: transparent;
}
.auth-input-wrap.auth-pw-wrap { padding: 0 6px 0 14px; }
.auth-input-wrap.auth-pw-wrap .form-control { padding-right: 6px; }

.auth-card .form-check {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; cursor: pointer; user-select: none;
}
.auth-card .form-check-input {
  width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid #cfc7b6;
  accent-color: var(--color-accent); cursor: pointer; flex: none;
}
.auth-card .form-check-label { font-size: 14px; color: #3c5148; cursor: pointer; }

.auth-alert {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fdf0ee;
  border: 1px solid #f3cfc8; color: #9b2c1c; font-size: 13.5px; font-weight: 600;
}

.auth-card .btn-primary {
  margin-top: 26px; height: 54px; border: 0; border-radius: var(--radius-md); background: var(--color-accent);
  color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 10px 24px rgba(20, 108, 76, .22);
}
.auth-card .btn-primary:hover { background: var(--color-accent-600); }
.auth-card .btn-primary:active { transform: translateY(1px); }

.auth-card .d-flex.justify-content-between.align-items-center.mb-3 { margin-top: 20px; align-items: baseline !important; }

.auth-pw-toggle {
  flex: none; border: 0; background: transparent; cursor: pointer; font-size: 12.5px; font-weight: 700;
  color: var(--color-muted); padding: 8px 10px; border-radius: 8px;
}
.auth-pw-toggle:hover { background: var(--color-section); }

.auth-divider {
  margin: 28px 0 0; display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: #9aa69f;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
}
.auth-divider span.line { flex: 1; height: 1px; background: var(--color-divider); }

.auth-cta-card {
  margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--color-divider);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.auth-cta-card .cta-title { font-size: 14.5px; font-weight: 700; color: var(--color-text); display: block; }
.auth-cta-card .cta-sub { font-size: 13px; color: #7b8d84; display: block; }
.auth-cta-card .btn-cta-outline {
  font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 10px;
  border: 1.5px solid var(--color-accent); color: var(--color-accent); white-space: nowrap;
}
.auth-cta-card .btn-cta-outline:hover { background: var(--color-section); color: var(--color-accent-600); }

@media (max-width: 959.98px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { min-height: 280px; }
  .auth-side-copy,
  .auth-side-footer { display: none; }
  .auth-main { padding: 20px 20px 24px; }
}
