:root {
  color-scheme: dark;
  --identity-bg: #07101f;
  --identity-panel: rgba(10, 24, 43, .94);
  --identity-border: rgba(139, 189, 255, .22);
  --identity-text: #edf6ff;
  --identity-muted: #9bb0c8;
  --identity-accent: #57d4ff;
  --identity-accent-2: #7c6cff;
  --identity-danger: #ff7b8c;
  --identity-success: #68e0b5;
  --identity-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }

body.identity-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--identity-text);
  background:
    radial-gradient(circle at 18% 18%, rgba(87, 212, 255, .16), transparent 32%),
    radial-gradient(circle at 80% 78%, rgba(124, 108, 255, .18), transparent 36%),
    linear-gradient(145deg, #040914 0%, #071426 52%, #080d1c 100%);
}

.identity-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

.identity-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
}

.identity-visual {
  min-height: 100vh;
  padding: clamp(32px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--identity-border);
}

.identity-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255,255,255,.94);
  padding: 5px;
  box-shadow: 0 10px 35px rgba(61, 179, 255, .22);
}

.identity-brand-name {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: .02em;
}

.identity-visual-copy { max-width: 760px; }
.identity-kicker {
  margin: 0 0 12px;
  color: var(--identity-accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.identity-visual-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.25rem, 5.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.identity-visual-copy > p:last-child {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--identity-muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.7;
}

.identity-security-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.identity-security-strip span {
  padding: 10px 14px;
  border: 1px solid var(--identity-border);
  border-radius: 999px;
  color: var(--identity-muted);
  background: rgba(5, 14, 27, .54);
  font-size: .82rem;
}
.identity-security-strip strong { color: var(--identity-text); }

.identity-card {
  width: min(520px, calc(100% - 48px));
  margin: auto;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--identity-border);
  border-radius: 28px;
  background: var(--identity-panel);
  box-shadow: var(--identity-shadow);
  backdrop-filter: blur(18px);
}
.identity-card-header h2,
.identity-logout-card h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -.04em;
}
.identity-card-header > p:last-child,
.identity-logout-card > p {
  color: var(--identity-muted);
  line-height: 1.6;
}

.identity-form { margin-top: 30px; }
.identity-form > label:not(.identity-check) {
  display: block;
  margin: 18px 0 8px;
  color: #cad8e7;
  font-size: .88rem;
  font-weight: 700;
}
.identity-form input[type="text"],
.identity-form input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(159, 193, 228, .26);
  border-radius: 13px;
  color: var(--identity-text);
  background: rgba(1, 8, 17, .68);
  outline: none;
  font: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.identity-form input:focus {
  border-color: var(--identity-accent);
  box-shadow: 0 0 0 4px rgba(87, 212, 255, .12);
}
.identity-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--identity-muted);
  font-size: .9rem;
}
.identity-check input { width: 18px; height: 18px; accent-color: var(--identity-accent); }

.identity-primary,
.identity-secondary {
  min-height: 48px;
  border-radius: 13px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.identity-primary {
  width: 100%;
  color: #03111c;
  background: linear-gradient(135deg, var(--identity-accent), #82f0e0);
  box-shadow: 0 12px 30px rgba(87, 212, 255, .18);
}
.identity-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.identity-secondary {
  color: var(--identity-text);
  border: 1px solid var(--identity-border);
  background: rgba(255,255,255,.04);
}

.identity-alert {
  margin: 20px 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 190, 105, .34);
  border-radius: 12px;
  color: #ffe2b6;
  background: rgba(121, 75, 16, .18);
  font-size: .9rem;
  line-height: 1.5;
}
.identity-alert-error {
  color: #ffd1d8;
  border-color: rgba(255, 123, 140, .34);
  background: rgba(116, 22, 38, .2);
}
.identity-alert-success {
  color: #caffeb;
  border-color: rgba(104, 224, 181, .34);
  background: rgba(21, 102, 75, .2);
}
.identity-card-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--identity-border);
  color: var(--identity-muted);
  font-size: .8rem;
  line-height: 1.5;
}
.identity-card-footer p { margin: 5px 0; }

.identity-logout-page {
  display: grid;
  place-items: center;
  padding: 24px;
}
.identity-logout-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--identity-border);
  border-radius: 28px;
  background: var(--identity-panel);
  box-shadow: var(--identity-shadow);
}
.identity-brand-dark { margin-bottom: 38px; }
.identity-logout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}
.identity-logout-actions .identity-primary { width: auto; }


@media (max-width: 900px) {
  .identity-shell { grid-template-columns: 1fr; }
  .identity-visual { min-height: auto; padding-bottom: 36px; border-right: 0; border-bottom: 1px solid var(--identity-border); }
  .identity-visual-copy { margin: 64px 0; }
  .identity-visual-copy h1 { font-size: clamp(2.5rem, 11vw, 4.5rem); }
  .identity-card { margin: 40px auto; }
}

@media (max-width: 520px) {
  .identity-visual { padding: 26px 22px; }
  .identity-card { width: calc(100% - 28px); margin: 24px auto; border-radius: 22px; }
  .identity-security-strip { display: none; }
  .identity-logout-actions { grid-template-columns: 1fr; }
}
