/* Sainina Hill — authentication pages (login / register) */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg);
}

/* Left — brand showcase */
.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 3.25rem);
  color: #f7f2e8;
  background: var(--accent-deep);
  isolation: isolate;
}

.auth-visual-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/hills-3.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  animation: auth-pan 22s ease-in-out infinite alternate;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(23, 17, 6, 0.9) 0%, rgba(23, 17, 6, 0.72) 45%, rgba(36, 25, 8, 0.88) 100%),
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(184, 146, 63, 0.3), transparent 65%);
}

@keyframes auth-pan {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  width: fit-content;
}

.auth-brand img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.auth-brand span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}

.auth-brand span em {
  color: var(--gold-soft);
  font-style: italic;
}

.auth-visual-copy {
  max-width: 30rem;
  padding: 2rem 0;
}

.auth-visual-copy .eyebrow {
  color: var(--gold-soft);
}

.auth-visual-copy h1 {
  margin: 0.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.auth-visual-copy h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.auth-visual-copy > p {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(244, 239, 228, 0.78);
}

.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid rgba(232, 207, 160, 0.22);
  padding-top: 1.5rem;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: rgba(244, 239, 228, 0.85);
}

.auth-points svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--gold-soft);
}

.auth-visual-foot {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(232, 207, 160, 0.65);
}

/* Right — form side */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(201, 162, 94, 0.18), transparent 60%),
    linear-gradient(180deg, #f7f4ee 0%, #efe8da 100%);
}

.auth-card {
  width: min(430px, 100%);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bronze);
  transition: gap 0.25s var(--ease), color 0.2s;
}

.auth-back:hover {
  gap: 0.65rem;
  color: var(--accent-deep);
}

.auth-card h2 {
  margin: 0.4rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.auth-card h2 em {
  font-style: italic;
}

.auth-sub {
  margin: 0 0 1.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.auth-mobile-brand img {
  height: 46px;
  width: auto;
}

.auth-mobile-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Fields */
.auth-field {
  display: block;
  margin-bottom: 1.15rem;
}

.auth-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap .auth-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--bronze);
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  border: 1.5px solid rgba(169, 127, 61, 0.28);
  border-radius: 10px;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  font: inherit;
  font-size: 0.98rem;
  background: #fffcf7;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input-wrap input::placeholder {
  color: rgba(107, 99, 88, 0.65);
}

.auth-input-wrap input:focus {
  outline: none;
  background: #fff;
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px rgba(201, 162, 94, 0.18);
}

.auth-input-wrap.has-toggle input {
  padding-right: 3rem;
}

.auth-toggle {
  position: absolute;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.auth-toggle:hover {
  color: var(--accent-deep);
  background: rgba(201, 162, 94, 0.14);
}

.auth-toggle .icon-hide {
  display: none;
}

.auth-toggle.is-visible .icon-hide {
  display: block;
}

.auth-toggle.is-visible .icon-show {
  display: none;
}

/* Options row */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0 1.6rem;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.auth-remember input {
  width: 17px;
  height: 17px;
  accent-color: var(--bronze);
  cursor: pointer;
}

.auth-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bronze);
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.auth-submit {
  border: 0;
  font-family: inherit;
}

/* Divider + footer */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.6rem 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(169, 127, 61, 0.28);
}

.auth-alt {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.auth-alt a {
  font-weight: 800;
  color: var(--bronze);
}

.auth-alt a:hover {
  text-decoration: underline;
}

.auth-note {
  margin: 1.85rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(169, 127, 61, 0.2);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}

.auth-message {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--bronze);
  border-radius: 8px;
  background: rgba(201, 162, 94, 0.14);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.auth-message.is-error {
  border-left-color: #c0392b;
  background: rgba(192, 57, 43, 0.1);
  color: #8e2a20;
}

.auth-message.is-success {
  border-left-color: #1e8a5a;
  background: rgba(30, 138, 90, 0.1);
  color: #146842;
}

/* Responsive */
@media (max-width: 992px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-mobile-brand {
    display: flex;
  }

  .auth-form-side {
    min-height: 100vh;
    min-height: 100dvh;
  }
}
