/* ============================================================
   Auth page styles (login / forgot-password / register)
   ============================================================ */

body.auth-body, body {
  background: var(--ak-cream-soft);
  color: var(--ak-text-dark);
}

.auth {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  position: relative;
}
@media (min-width: 900px) {
  .auth { grid-template-columns: 1fr 1fr; }
}

.auth__back {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: var(--text-sm);
  color: var(--ak-text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
  z-index: 5;
}
.auth__back:hover { color: var(--ak-gold-deep); }
.auth__back span {
  display: inline-block;
  transition: transform 0.25s;
}
.auth__back:hover span { transform: translateX(3px); }

/* Panel (the form side) */
.auth__panel {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 600px) {
  .auth__panel { padding: 56px 56px; }
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
}
.auth__brand img {
  height: 64px;
  width: 64px;
  object-fit: contain;
}
.auth__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.auth__brand-text strong {
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  color: var(--ak-text-dark);
}
.auth__brand-text small {
  font-size: var(--text-xs);
  color: var(--ak-text-mid);
  letter-spacing: 0.06em;
}

.auth__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth__head h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.auth__head p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ak-text-mid);
  max-width: 48ch;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-form .field__label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--ak-text-mid);
  font-weight: var(--weight-medium);
}
.auth-form input {
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--ak-text-dark);
  background: var(--ak-white);
  border: 1px solid var(--ak-line-light);
  padding: 14px 18px;
  transition: var(--tr);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--ak-gold-mid);
}
.auth-form input::placeholder { color: var(--ak-text-light); }

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  flex-wrap: wrap;
  gap: 12px;
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ak-text-mid);
  cursor: pointer;
}
.remember input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ak-line-light);
  background: var(--ak-white);
  cursor: pointer;
  position: relative;
}
.remember input:checked {
  background: var(--ak-obsidian);
  border-color: var(--ak-obsidian);
}
.remember input:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ak-gold-light);
  font-size: 11px;
  font-weight: var(--weight-bold);
}

.auth__link {
  color: var(--ak-gold-deep);
  font-size: var(--text-sm);
  border-bottom: 1px solid transparent;
  transition: var(--tr);
}
.auth__link:hover {
  border-bottom-color: var(--ak-gold-mid);
}

.auth-form__submit {
  justify-content: center;
  padding: 16px 28px;
  margin-top: 8px;
}

.auth__footnote {
  font-size: var(--text-sm);
  color: var(--ak-text-mid);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--ak-line-light);
  margin-top: 8px;
}

/* Aside */
.auth__aside {
  display: none;
  background: var(--ak-obsidian);
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .auth__aside { display: block; }
}
.auth__visual {
  margin: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.auth__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.55) contrast(1.05);
}
.auth__quote {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px;
  color: var(--ak-text-white);
  font-style: normal;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 8, 4, 0.85));
}
.auth__quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 96px;
  line-height: 0.6;
  color: var(--ak-gold-light);
  margin-bottom: 16px;
  display: block;
}
.auth__quote p {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: var(--weight-light);
  line-height: 1.35;
  max-width: 26ch;
  margin-bottom: 16px;
}
.auth__quote footer {
  font-size: var(--text-sm);
  color: var(--ak-gold-light);
  letter-spacing: 0.06em;
}
