/* Auth pages share tokens from style.css (must be loaded first) */

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

.auth-side {
  position: relative;
  background: linear-gradient(160deg, var(--lav-700), #3D2E7A);
  color: var(--white);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute; top: -180px; right: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,169,78,0.25), transparent 70%);
}
.auth-side .brand__word { color: var(--white); font-size: 20px; }
.auth-side__quote { position: relative; max-width: 420px; }
.auth-side__quote h2 { color: var(--white); font-size: 30px; margin-bottom: 14px; }
.auth-side__quote p { color: rgba(255,255,255,0.75); }
.auth-side__ring {
  position: relative;
  align-self: flex-end;
  width: 190px; height: 190px;
  border: 1.5px dashed rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.auth-side__ring div {
  width: 64%; height: 64%;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 34px;
}
.auth-card__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-500);
  margin-bottom: 18px;
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p.auth-sub { margin-bottom: 26px; font-size: 14.5px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 7px;
}
.field-input {
  position: relative;
}
.field-input input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--lav-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink-900);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-input input:focus {
  outline: none;
  border-color: var(--lav-500);
  box-shadow: 0 0 0 4px rgba(141,116,227,0.15);
}
.field-input input.has-error { border-color: #E38C9E; }
.field-error { color: #C0405A; font-size: 12.5px; margin-top: 6px; font-weight: 600; }

.field-toggle {
  position: absolute;
  right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--lav-600);
}

.field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-500); }
.remember input { width: 16px; height: 16px; accent-color: var(--lav-600); }
.link-muted { font-size: 13.5px; font-weight: 700; color: var(--lav-700); }
.link-muted:hover { text-decoration: underline; }

.auth-card__footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-500); }

.auth-test-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--lav-50);
  border: 1px dashed var(--lav-300);
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.6;
}
.auth-test-note strong { color: var(--ink-700); }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 28px 16px; }
  .auth-card { padding: 30px 24px; }
}
