/* =========================================================================
   LOGIN PAGE
   ========================================================================= */
html, body.auth-body { height: 100%; }
body.auth-body { overflow-x: hidden; }

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- LEFT: brand / reassurance panel ---------- */
.auth-aside {
  position: relative;
  background: radial-gradient(1000px 700px at 20% -10%, #1B3A55 0%, var(--ink-950) 55%);
  color: var(--paper-0);
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-aside__grid { position: absolute; inset: 0; opacity: 0.6; }
.auth-aside .brand { color: var(--paper-0); position: relative; z-index: 1; }
.auth-aside__content { position: relative; z-index: 1; max-width: 460px; margin: auto 0; }
.auth-aside__title {
  color: var(--paper-0);
  font-size: clamp(30px, 3.2vw, 42px);
  margin-top: var(--sp-6);
}
.auth-aside__title em {
  font-style: italic;
  color: var(--brass-300);
}
.auth-aside__text {
  margin-top: var(--sp-4);
  color: var(--ink-200);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 420px;
}
.auth-aside__points {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.auth-aside__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-200);
}
.auth-aside__points svg { width: 17px; height: 17px; color: var(--brass-300); flex-shrink: 0; }
.auth-aside__foot {
  position: relative; z-index: 1;
  font-size: 12.5px;
  color: var(--ink-400);
}

/* ---------- RIGHT: form panel ---------- */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-7) var(--sp-6);
  background: var(--paper-0);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card__head { margin-bottom: var(--sp-6); }
.auth-card__head h2 { font-size: 26px; }
.auth-card__head p { margin-top: var(--sp-2); color: var(--ink-600); font-size: 14.5px; }

.auth-tabs {
  display: flex;
  border-radius: var(--r-sm);
  background: var(--paper-50);
  border: 1px solid var(--paper-100);
  padding: 4px;
  margin-bottom: var(--sp-6);
}
.auth-tab {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  transition: all var(--dur-fast) var(--ease-out);
}
.auth-tab.is-active {
  background: var(--paper-0);
  color: var(--ink-950);
  box-shadow: var(--shadow-sm);
}

.auth-form .field { margin-bottom: var(--sp-5); }
.auth-submit { width: 100%; margin-top: var(--sp-2); }
.auth-submit[disabled] { opacity: 0.6; }

.auth-error {
  display: none;
  background: var(--rust-100);
  color: var(--rust-600);
  font-size: 13.5px;
  font-weight: 600;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-4);
}
.auth-error.is-visible { display: block; animation: fieldOpen var(--dur-med) var(--ease-out); }

/* ---------- demo credentials helper ---------- */
.auth-demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--sp-6);
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--steel-600);
}
.auth-demo-toggle svg { width: 15px; height: 15px; }
.auth-demo-box {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--steel-100);
  border: 1px solid rgba(61, 98, 128, 0.2);
}
.auth-demo-box.is-visible { display: block; animation: fieldOpen var(--dur-med) var(--ease-out); }
.auth-demo-box__note {
  font-size: 12px;
  color: var(--steel-600);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.auth-demo-table { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.auth-demo-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-400); padding-bottom: 6px; font-weight: 600;
}
.auth-demo-table td { padding: 7px 0; border-top: 1px solid rgba(61, 98, 128, 0.15); color: var(--ink-800); }
.auth-demo-table tr { cursor: pointer; }
.auth-demo-table tr:hover td { color: var(--brass-600); }
.auth-demo-table td:first-child { font-weight: 600; color: var(--ink-950); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 260px; padding: var(--sp-6); }
  .auth-aside__content { margin: var(--sp-6) 0; }
  .auth-aside__points { display: none; }
}
