/* ===== AUTH PAGE — DONATTOUR LOGIN ===== */

.auth-page {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  overflow: hidden;
}

/* LEFT - VISUAL */
.auth-visual {
  background: linear-gradient(135deg, var(--choco) 0%, var(--warm-brown) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 48px;
}
.auth-visual::before {
  content: ''; position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  opacity: 0.4;
}
.auth-visual::after {
  content: ''; position: absolute;
  bottom: -200px; left: -150px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.3;
}

.auth-visual-inner {
  position: relative; z-index: 2;
  color: var(--cream);
  max-width: 460px;
  text-align: center;
}
.auth-logo-hero {
  width: clamp(170px, 22vw, 240px);
  height: clamp(170px, 22vw, 240px);
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background: rgba(255, 248, 241, .96);
  border: 1px solid rgba(255, 248, 241, .42);
  box-shadow: var(--shadow-xl), 0 28px 70px rgba(0, 0, 0, .22);
  animation: float 6s ease-in-out infinite;
}
.auth-logo-hero img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}
.auth-donut {
  width: 240px; height: 240px;
  margin: 0 auto 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 22%, var(--choco) 22.5%, var(--warm-brown) 45%, var(--gold) 70%, var(--gold-deep) 100%);
  box-shadow: var(--shadow-xl), inset 0 -20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.auth-donut::before {
  content: ''; position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink) 0%, var(--pink-deep) 60%, transparent 65%);
  opacity: 0.85;
}
.auth-donut::after {
  content: ''; position: absolute; top: 15%; left: 15%; right: 15%; bottom: 15%;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 20% 30%, var(--cream) 1.5%, transparent 2%),
    radial-gradient(circle at 70% 25%, var(--gold-deep) 1%, transparent 1.5%),
    radial-gradient(circle at 80% 70%, var(--choco) 1.2%, transparent 1.7%),
    radial-gradient(circle at 30% 75%, var(--cream) 1%, transparent 1.5%),
    radial-gradient(circle at 50% 20%, var(--gold-deep) 1%, transparent 1.5%),
    radial-gradient(circle at 15% 60%, var(--choco) 1.3%, transparent 1.8%);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

.auth-script {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--pink);
  margin-bottom: 4px;
}
.auth-visual h1 {
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 12px;
}
.auth-visual h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.auth-tagline {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.55;
}
.auth-features {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.auth-feature {
  font-size: 13px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* RIGHT - FORM */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 56px;
  position: relative;
}
.auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.auth-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(78, 52, 46, .12);
}
.auth-brand-name {
  font-family: var(--font-h);
  font-weight: 900;
  font-size: 26px;
  color: var(--choco);
  letter-spacing: -0.02em;
}
.auth-brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.auth-title {
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 800;
  color: var(--choco);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.auth-title em { color: var(--gold-deep); font-style: italic; font-weight: 500; }
.auth-subtitle {
  color: var(--coffee);
  font-size: 14px;
  margin-bottom: 20px;
}

.auth-form .form-control {
  padding: 12px 16px;
  font-size: 14px;
}
.auth-form .form-group {
  margin-bottom: 16px;
}
.auth-form .btn-lg {
  padding: 12px 24px;
}
.auth-form-wrap .alert {
  margin-bottom: 14px;
  padding: 12px 14px;
}

.auth-form .form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--coffee);
}
.auth-checkbox input { accent-color: var(--choco); }

.auth-link {
  font-size: 13px;
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-demo {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--coffee);
  margin-top: 0;
}
.auth-demo strong { color: var(--choco); display: block; margin-bottom: 6px; font-size: 13px; }
.auth-demo code {
  background: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--berry);
  font-size: 11px;
}

@media (max-width: 960px) {
  .auth-page { grid-template-columns: 1fr; height: auto; min-height: 100vh; overflow: auto; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 40px 24px; }
}

@media (max-height: 760px) and (min-width: 961px) {
  .auth-visual { padding: 24px 42px; }
  .auth-logo-hero {
    width: 170px;
    height: 170px;
    margin-bottom: 14px;
  }
  .auth-script { font-size: 22px; }
  .auth-visual h1 { font-size: 32px; margin-bottom: 8px; }
  .auth-tagline { font-size: 13px; line-height: 1.45; }
  .auth-features { margin-top: 16px; }
  .auth-form-side { padding: 18px 54px; }
  .auth-brand { margin-bottom: 18px; }
  .auth-title { font-size: 28px; }
  .auth-subtitle { margin-bottom: 14px; }
  .auth-form .form-control { padding: 10px 14px; }
  .auth-form .form-group { margin-bottom: 12px; }
  .auth-form .btn-lg { padding: 11px 20px; }
  .auth-divider { margin: 14px 0 10px; }
  .auth-demo { padding: 10px 12px; }
}
