/* ==========================================================================
   BALLETTO FEST AUTUMN THEME AUTH & REGISTRATION PORTAL STYLES
   ========================================================================== */

:root {
  --bg-dark: #120c0e;
  --bg-card: rgba(28, 18, 22, 0.88);
  --gold-primary: #e6b744;
  --gold-light: #f5cb68;
  --gold-dark: #c89632;
  --wine-accent: #8b1e2d;
  --wine-light: #a82b3d;
  --champagne-accent: #f7e7ce;
  --gold-gradient: linear-gradient(135deg, #f5cb68 0%, #e6b744 50%, #c89632 100%);
  --wine-gradient: linear-gradient(135deg, #a82b3d 0%, #8b1e2d 100%);
  --text-main: #fbf7f4;
  --text-muted: #c2b5b2;
  --border-gold: rgba(230, 183, 68, 0.38);
  --border-gold-hover: rgba(245, 203, 104, 0.75);
  --border-wine: rgba(139, 30, 45, 0.45);
  --shadow-gold: 0 10px 30px rgba(230, 183, 68, 0.25);
  --shadow-wine: 0 10px 30px rgba(139, 30, 45, 0.35);
}

*, *::before, *::after,
body, p, a, h1, h2, h3, h4, h5, h6, span, div, button, input, select, textarea {
  box-sizing: border-box;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body.auth-page {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 30, 45, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(230, 183, 68, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(200, 150, 50, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #180e12 0%, #0d080a 100%);
}

/* Atmospheric Autumn Glow */
.auth-sun-glow {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(230, 183, 68, 0.2) 0%, rgba(139, 30, 45, 0.16) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Header */
.auth-header {
  position: relative;
  z-index: 10;
  padding: 24px 20px;
  background: rgba(18, 12, 14, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 183, 68, 0.22);
}

.auth-header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.auth-logo-link:hover {
  color: var(--gold-light);
}

.auth-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(230, 183, 68, 0.35));
  transition: transform 0.3s ease;
}

.auth-logo-link:hover .auth-logo-img {
  transform: scale(1.05);
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(234, 186, 42, 0.35);
  border-radius: 30px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-back-home:hover {
  background: rgba(234, 186, 42, 0.15);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateX(-3px);
}

/* Main Container */
.auth-main {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.auth-hero-title {
  text-align: center;
  margin-bottom: 30px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 30, 45, 0.32);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Interactive Tabs */
.auth-tabs-nav {
  display: flex;
  background: rgba(22, 14, 18, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 30px;
  gap: 6px;
}

.auth-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.auth-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab-btn.active {
  background: var(--gold-gradient);
  color: #120c0e;
  box-shadow: 0 6px 20px rgba(230, 183, 68, 0.35);
}

/* Card Wrapper */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(139, 30, 45, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-tab-pane {
  display: none;
  animation: fadeInPane 0.35s ease forwards;
}

.auth-tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(234, 186, 42, 0.2);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #e5e3dc;
}

.form-label .req {
  color: #ff5252;
  font-weight: 700;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(10, 9, 6, 0.7);
  border: 1.5px solid rgba(234, 186, 42, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-light);
  background: rgba(18, 16, 10, 0.9);
  box-shadow: 0 0 14px rgba(234, 186, 42, 0.3);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-select option {
  background: #1a160d;
  color: #ffffff;
}

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-checkbox-wrap input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Submit Buttons */
.btn-submit-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 14px;
  color: #000000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 8px 24px rgba(234, 186, 42, 0.4);
  margin-top: 12px;
}

.btn-submit-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 186, 42, 0.55), 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-submit-gold:active {
  transform: translateY(1px);
}

/* Alerts */
.alert-box {
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.45);
  color: #ff8585;
}

.alert-success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.45);
  color: #79e797;
}

.alert-info {
  background: rgba(234, 186, 42, 0.12);
  border: 1px solid rgba(234, 186, 42, 0.35);
  color: var(--gold-light);
}

/* Support Help Box */
.auth-support-card {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(234, 186, 42, 0.3);
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-support-card strong {
  color: var(--gold-light);
}

.support-contacts-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(234, 186, 42, 0.15);
  border: 1px solid rgba(234, 186, 42, 0.4);
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.support-btn:hover {
  background: var(--gold-primary);
  color: #000000;
}

@media screen and (max-width: 640px) {
  .auth-card {
    padding: 24px 18px;
  }
  .auth-tabs-nav {
    flex-direction: column;
  }
  .auth-title {
    font-size: 24px;
  }
}
