/* Auth Page Styles */

.auth-page { height: 100vh; overflow: hidden; }

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
}

/* Brand Panel */
.brand-panel {
  background: var(--teal-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.brand-content { position: relative; z-index: 2; color: white; }

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.brand-logo span {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: white;
}

.brand-headline {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 20px;
}
.brand-headline em {
  font-style: italic;
  color: var(--gold);
}

.brand-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.brand-stats {
  display: flex;
  gap: 32px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(191,140,76,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.brand-panel::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.brand-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(191,140,76,0.12);
  border-radius: 50%;
}

/* Auth Panel */
.auth-panel {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow-y: auto;
}

.auth-container { width: 100%; max-width: 400px; }

.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 32px;
}
.tab-btn {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active {
  background: white;
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.form-sub { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 28px; }

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
}
.link-sm { font-size: 0.875rem; color: var(--teal); text-decoration: none; }
.link-sm:hover { text-decoration: underline; }

.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 44px; }
.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--gray-400);
  padding: 0;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* Mobile auth */
@media (max-width: 768px) {
  .auth-page { height: auto; overflow: auto; }
  .auth-split { grid-template-columns: 1fr; height: auto; }
  
  /* Make brand panel compact */
  .brand-panel { padding: 32px 24px 24px; }
  .brand-logo { margin-bottom: 16px; }
  .brand-headline { font-size: 2rem; margin-bottom: 0; }
  .brand-sub, .brand-stats { display: none; } /* Hide on mobile to save vertical space */
  
  .auth-panel { padding: 24px; }
  .auth-tabs { margin-bottom: 24px; }
}
