/* NIZAM — authentication surface (sign-in, password reset, activation entry).
   A deliberately separate visual language from the signed-in application:
   warm paper background, a deep emerald identity rail, one frosted card.
   Every rule is scoped to .nz-auth so it cannot bleed into the app shell. */

.nz-auth {
  --nz-ink: #14231e;
  --nz-muted: #5c6b64;
  --nz-green: #0b4f40;
  --nz-green-deep: #07352c;
  --nz-green-soft: #e7f0ec;
  --nz-gold: #c39b3f;
  --nz-line: rgba(18, 42, 34, .10);
  --nz-card: rgba(255, 255, 255, .94);
  min-height: 100vh;
  margin: 0;
  color: var(--nz-ink);
  font-family: "Inter", "Segoe UI", Tahoma, system-ui, sans-serif;
  background:
    radial-gradient(1100px 600px at 8% -10%, rgba(11, 79, 64, .16), transparent 62%),
    radial-gradient(900px 540px at 105% 110%, rgba(195, 155, 63, .14), transparent 60%),
    linear-gradient(180deg, #f7f4ec 0%, #f2efe6 100%);
  -webkit-font-smoothing: antialiased;
}

.nz-auth *,
.nz-auth *::before,
.nz-auth *::after { box-sizing: border-box; }

.nz-auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 46%) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
  width: min(1180px, calc(100% - 32px));
  min-height: min(760px, calc(100vh - 48px));
  margin: clamp(16px, 4vh, 40px) auto;
  padding: clamp(12px, 1.6vw, 20px);
  border: 1px solid var(--nz-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 40px 120px -60px rgba(10, 45, 36, .55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

/* ------------------------------------------------------------- identity rail */
.nz-auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(26px, 3.4vw, 46px);
  border-radius: 22px;
  color: rgba(255, 255, 255, .84);
  background:
    radial-gradient(560px 380px at 108% -4%, rgba(195, 155, 63, .38), transparent 62%),
    radial-gradient(480px 400px at -10% 108%, rgba(20, 148, 120, .30), transparent 60%),
    linear-gradient(158deg, var(--nz-green-deep) 0%, #0a463b 55%, var(--nz-green) 100%);
  overflow: hidden;
  isolation: isolate;
}
.nz-auth-aside::before,
.nz-auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .10);
  pointer-events: none;
  z-index: -1;
}
.nz-auth-aside::before { width: 460px; height: 460px; inset-inline-end: -190px; top: -170px; }
.nz-auth-aside::after { width: 300px; height: 300px; inset-inline-start: -140px; bottom: -130px; border-color: rgba(195, 155, 63, .18); }

.nz-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nz-brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .8);
}
.nz-brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 6px; border-radius: inherit; }
.nz-brand-name {
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.nz-brand-sub {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .60);
  margin-top: 2px;
}
.nz-auth-aside-mid { margin-top: clamp(8px, 3vh, 26px); }
.nz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .86);
}
.nz-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--nz-gold); box-shadow: 0 0 0 3px rgba(195, 155, 63, .22); }
.nz-headline {
  margin: 18px 0 10px;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.28;
  font-weight: 750;
  color: #fff;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.nz-headline-gold { color: #e9cd8b; }
.nz-lede { margin: 0; max-width: 34ch; font-size: .95rem; line-height: 1.85; color: rgba(255, 255, 255, .72); }

.nz-points { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.nz-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}
.nz-points .nz-point-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #f0d9a4;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
}
.nz-points strong { display: block; color: #fff; font-size: .86rem; font-weight: 650; margin-bottom: 1px; }
.nz-points span { display: block; color: rgba(255, 255, 255, .66); font-size: .77rem; line-height: 1.55; }

.nz-aside-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .7rem;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .52);
}

/* ------------------------------------------------------------------ panel */
.nz-auth-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 30px) clamp(16px, 2.6vw, 38px);
}
.nz-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nz-topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nz-topbar-brand img { width: 30px; height: 30px; object-fit: contain; }
.nz-topbar-brand span { font-size: .82rem; font-weight: 650; color: var(--nz-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nz-lang {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--nz-line);
  background: rgba(255, 255, 255, .8);
}
.nz-lang a {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  color: var(--nz-muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nz-lang a:hover { color: var(--nz-green); }
.nz-lang a.is-active { background: var(--nz-green); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 79, 64, .8); }

.nz-card {
  width: min(470px, 100%);
  margin: clamp(18px, 5vh, 54px) auto auto;
  padding: clamp(24px, 3.2vw, 38px);
  border-radius: 24px;
  border: 1px solid rgba(18, 42, 34, .08);
  background: var(--nz-card);
  box-shadow: 0 30px 80px -46px rgba(10, 45, 36, .55);
}
.nz-card-wide { width: min(560px, 100%); }

.nz-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nz-gold);
  margin-bottom: 10px;
}
.nz-title { margin: 0 0 8px; font-size: clamp(1.45rem, 2vw, 1.75rem); font-weight: 760; letter-spacing: -.01em; color: var(--nz-ink); overflow-wrap: anywhere; }
.nz-sub { margin: 0 0 24px; font-size: .9rem; line-height: 1.7; color: var(--nz-muted); }

.nz-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: .85rem;
  line-height: 1.6;
  border: 1px solid transparent;
}
.nz-alert svg { flex: 0 0 18px; margin-top: 1px; }
.nz-alert-danger { color: #8a2632; background: #fdf1f2; border-color: #f3d2d6; }
.nz-alert-success { color: #12573f; background: #eef7f2; border-color: #cfe7db; }
.nz-alert-info { color: #3d4b56; background: #f2f5f7; border-color: #dde5ea; }
.nz-alert .nz-copy-btn {
  margin-inline-start: auto;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 3px 9px;
  font-size: .74rem;
  font-weight: 650;
  cursor: pointer;
}

.nz-field { margin-bottom: 18px; }
.nz-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: .8rem;
  font-weight: 650;
  color: var(--nz-ink);
}
.nz-label svg { color: var(--nz-green); }
.nz-input-wrap { position: relative; display: flex; align-items: center; }
.nz-input-icon {
  position: absolute;
  inset-inline-start: 14px;
  display: grid;
  place-items: center;
  color: #8a9891;
  pointer-events: none;
}
.nz-input {
  width: 100%;
  min-height: 52px;
  padding: 13px 46px;
  border-radius: 13px;
  border: 1px solid #d9e1dc;
  background: #fbfcfb;
  font-size: .95rem;
  color: var(--nz-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.nz-input::placeholder { color: #a2ada7; }
.nz-input:hover { border-color: #c3cfc8; }
.nz-input:focus {
  outline: none;
  border-color: var(--nz-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 79, 64, .12);
}
.nz-input[dir="ltr"] { direction: ltr; text-align: left; }
.nz-reveal {
  position: absolute;
  inset-inline-end: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8a9891;
  cursor: pointer;
}
.nz-reveal:hover { background: #eef3f0; color: var(--nz-green); }
.nz-hint { margin: 8px 2px 0; font-size: .76rem; line-height: 1.6; color: var(--nz-muted); }

.nz-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #0d5c4a, #073c31);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 18px 34px -18px rgba(9, 60, 49, .85);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.nz-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.nz-submit:active { transform: translateY(0); }
.nz-submit:focus-visible { outline: 3px solid rgba(195, 155, 63, .55); outline-offset: 2px; }
.nz-submit[disabled] { opacity: .7; cursor: progress; }
.nz-submit .nz-flip { transform: scaleX(var(--nz-flip, 1)); }
[dir="rtl"] .nz-auth .nz-flip { --nz-flip: -1; }

.nz-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--nz-line);
}
.nz-link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nz-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--nz-line);
  background: rgba(255, 255, 255, .7);
  color: var(--nz-ink);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.nz-link:hover { border-color: rgba(11, 79, 64, .35); background: #f2f7f4; color: var(--nz-green); }
.nz-link svg { color: var(--nz-green); }
.nz-link-quiet { border-color: transparent; background: transparent; color: var(--nz-muted); font-weight: 550; }
.nz-link-quiet:hover { background: rgba(11, 79, 64, .06); }
.nz-note { margin: 14px 0 0; font-size: .76rem; line-height: 1.7; color: var(--nz-muted); }

.nz-panel-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-size: .72rem;
  color: #7d8a83;
}
.nz-panel-foot svg { color: var(--nz-green); }

.nz-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.nz-steps li { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; line-height: 1.65; color: var(--nz-muted); }
.nz-steps .nz-step-n {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nz-green-soft);
  color: var(--nz-green);
  font-size: .72rem;
  font-weight: 750;
}
.nz-context {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--nz-green-soft);
  font-size: .78rem;
  color: var(--nz-green);
  font-weight: 600;
}
.nz-context span:last-child { color: var(--nz-ink); font-weight: 650; }

.nz-check { display: flex; gap: 9px; align-items: flex-start; font-size: .8rem; color: var(--nz-muted); line-height: 1.6; margin-bottom: 16px; }
.nz-check input { margin-top: 3px; accent-color: var(--nz-green); }
.nz-check a { color: var(--nz-green); font-weight: 600; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nz-auth-shell { grid-template-columns: 1fr; width: min(680px, calc(100% - 24px)); min-height: 0; }
  .nz-auth-aside { display: none; }
  .nz-auth-panel { padding: 10px 14px 18px; }
  .nz-card { margin-top: 20px; }
  .nz-panel-foot { padding-top: 18px; }
}
@media (max-width: 480px) {
  .nz-auth-shell { width: 100%; margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 10px; }
  .nz-card { padding: 22px 18px; border-radius: 18px; }
  .nz-topbar-brand span { max-width: 46vw; }
}

@media (prefers-reduced-motion: reduce) {
  .nz-auth *, .nz-auth *::before, .nz-auth *::after { transition: none !important; animation: none !important; }
}
