/* ==========================================================================
   «ПРЕМИЯ СИЛЬНЕЙШИХ» — ПОРТАЛ РЕГИСТРАЦИИ И АВТОРИЗАЦИИ
   Палитра: благородное золото, слоновая кость, теплый мрамор, темный текст
   ========================================================================== */

:root {
  --bg-dark: #fdfbf7;
  --bg-surface: #f7f2e7;
  --bg-card: #ffffff;
  --gold-primary: #d4af37;
  --gold-light: #f7df96;
  --gold-dark: #b8860b;
  --gold-deep: #8a6416;
  --gold-gradient: linear-gradient(135deg, #f7df96 0%, #d4af37 40%, #b8860b 80%, #d4af37 100%);
  --gold-hover: linear-gradient(135deg, #ffffff 0%, #f7df96 40%, #d4af37 100%);
  --text-main: #1c150e;
  --text-secondary: #3d2f21;
  --text-muted: #6b5845;
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-hover: #d4af37;
  --shadow-gold: 0 10px 30px rgba(61, 47, 33, 0.08);
}

*, *::before, *::after,
body, p, a, h1, h2, h3, h4, h5, h6, span, div, button, input, select, textarea {
  box-sizing: border-box;
  font-family: 'Lora', 'Playfair Display', Georgia, 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 50% -10%, #f5ebd9 0%, #fdfbf7 70%);
}

/* Мягкие золотые лучи */
.auth-sun-glow {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(247, 223, 150, 0.06) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.auth-header {
  position: relative;
  z-index: 10;
  padding: 20px;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border-gold);
  box-shadow: 0 4px 20px rgba(61, 47, 33, 0.05);
}

.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: var(--text-main);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
}

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

.auth-logo-img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(61, 47, 33, 0.1);
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 30px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(61, 47, 33, 0.06);
  transition: all 0.3s ease;
}

.btn-back-home:hover {
  background: #faf4e6;
  border-color: var(--gold-dark);
  color: var(--gold-deep);
  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: #ffffff;
  border: 1px solid var(--border-gold);
  color: var(--gold-deep);
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(61, 47, 33, 0.04);
}

.auth-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.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: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 28px;
  gap: 6px;
  box-shadow: var(--shadow-gold);
}

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

.auth-tab-btn:hover {
  color: var(--text-main);
  background: #faf4e6;
}

.auth-tab-btn.active {
  background: var(--gold-gradient);
  color: #1a1208;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* Card Wrapper */
.auth-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 16px 45px rgba(61, 47, 33, 0.08), 0 0 25px rgba(212, 175, 55, 0.06);
}

.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-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 26px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #f2ead8;
}

.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: var(--text-secondary);
}

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

.form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: #fdfcf9;
  border: 1.5px solid #e0d6c3;
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.25s ease;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-primary);
  background: #ffffff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Buttons */
.btn-submit-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: var(--gold-gradient);
  border: 1px solid #ffd700;
  border-radius: 30px;
  color: #1a1208;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-submit-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
  color: #000000;
}

/* Alerts */
.alert-box {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-error {
  background: #fff2f2;
  border: 1.5px solid #ff9999;
  color: #991b1b;
}

.alert-success {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
}

.alert-duplicate {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
}

.alert-info {
  background: #fbf7ee;
  border: 1.5px solid #d4af37;
  color: #3d2f21;
}

/* Concierge Support Buttons */
.support-contacts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 30px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(61, 47, 33, 0.06);
  transition: all 0.25s ease;
}

.support-btn:hover {
  background: var(--gold-gradient);
  border-color: #ffd700;
  color: #1a1208;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.support-btn-wa:hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  border-color: #25d366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.support-btn-tg:hover {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #ffffff;
  border-color: #2aabee;
  box-shadow: 0 8px 20px rgba(42, 171, 238, 0.35);
}

@media screen and (max-width: 600px) {
  .auth-main {
    margin: 20px auto 60px;
    padding: 0 14px;
  }
  .auth-card {
    padding: 24px 18px;
  }
  .auth-tabs-nav {
    flex-direction: column;
  }
}

/* ==========================================================================
   DEVELOPER ADVERTISEMENT BOTTOM BAR
   ========================================================================== */
.developer-bar {
  background: #14171f !important;
  color: #cbd5e1 !important;
  border-top: 1px solid #232936 !important;
  padding: 14px 24px !important;
  font-size: 13px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  position: relative !important;
  z-index: 99 !important;
  margin-top: 40px !important;
}

.developer-bar-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
}

.developer-bar-text {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.developer-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 9px !important;
  background: rgba(205, 167, 85, 0.15) !important;
  border: 1px solid rgba(205, 167, 85, 0.4) !important;
  border-radius: 999px !important;
  color: #f1cf85 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.4 !important;
}

.developer-offer {
  font-weight: 600 !important;
  color: #f8fafc !important;
  letter-spacing: 0.2px !important;
  font-size: 13.5px !important;
}

.developer-bar-contact {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.developer-author {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

.developer-author strong {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.developer-phone {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #f1cf85 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.developer-phone:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.developer-socials {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.developer-social-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  line-height: 1 !important;
}

.developer-social-wa {
  background: rgba(18, 140, 126, 0.25) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
}

.developer-social-wa:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.developer-social-tg {
  background: rgba(14, 165, 233, 0.22) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.developer-social-tg:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

@media (max-width: 860px) {
  .developer-bar {
    padding: 16px 20px !important;
  }
  .developer-bar-container {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  .developer-bar-text {
    justify-content: center !important;
  }
  .developer-bar-contact {
    flex-direction: column !important;
    gap: 10px !important;
    justify-content: center !important;
  }
  .developer-socials {
    justify-content: center !important;
  }
}

