/* ===== AUTH PAGES — Shared Styles ===== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--warm-cream);
  position: relative;
}

.auth-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(244,168,149,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(138,173,196,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 48px 36px;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gentle-coral), var(--warm-terra), var(--trust-green));
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.auth-logo a span { color: var(--warm-terra); }

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-field input, .auth-field select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(92,61,46,0.1);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--warm-cream);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.auth-field input:focus, .auth-field select:focus {
  outline: none;
  border-color: var(--warm-terra);
  background: var(--white);
}

.auth-field input::placeholder { color: var(--text-light); }

.auth-role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-role-btn {
  padding: 16px;
  border: 2px solid rgba(92,61,46,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--warm-cream);
  font-family: inherit;
  color: var(--text-primary);
}

.auth-role-btn:hover, .auth-role-btn.active {
  border-color: var(--warm-terra);
  background: rgba(212,133,107,0.08);
}

.auth-role-btn .role-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.auth-role-btn .role-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-submit {
  padding: 16px;
  background: linear-gradient(135deg, var(--gentle-coral), var(--warm-terra));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  margin-top: 8px;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,133,107,0.35);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-links a {
  color: var(--warm-terra);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

.auth-divider {
  text-align: center;
  margin: 16px 0;
  color: var(--text-light);
  font-size: 0.85rem;
  position: relative;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(92,61,46,0.1);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-error {
  display: none;
  padding: 12px 16px;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  color: #DC2626;
  font-size: 0.9rem;
  text-align: center;
}

.auth-error.visible { display: block; }

.auth-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.auth-success.visible { display: block; }

.auth-success-icon {
  width: 72px;
  height: 72px;
  background: var(--trust-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.auth-success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.auth-success p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-lang-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-lang-btn {
  padding: 6px 14px;
  border: 1px solid rgba(92,61,46,0.12);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-family: inherit;
}

.auth-lang-btn.active {
  background: var(--warm-cream);
  color: var(--text-primary);
  border-color: var(--warm-terra);
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 20px; }
  .auth-role-selector { grid-template-columns: 1fr; }
}
