/* ==========================================================================
   RIDEHOST.RU - Modern Auth / Register / Restore Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --auth-bg: #040814;
  --auth-card-bg: rgba(11, 20, 44, 0.75);
  --auth-card-border: rgba(56, 189, 248, 0.15);
  --auth-input-bg: rgba(15, 27, 60, 0.7);
  --auth-input-border: rgba(56, 189, 248, 0.18);
  --auth-input-focus: #38bdf8;
  --auth-primary: #38bdf8;
  --auth-primary-hover: #0ea5e9;
  --auth-primary-glow: rgba(56, 189, 248, 0.4);
  --auth-text-main: #f8fafc;
  --auth-text-muted: #94a3b8;
  --auth-text-dim: #64748b;
  --auth-emerald: #10b981;
}

body.auth-page {
  background-color: var(--auth-bg) !important;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(14, 165, 233, 0.09), transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(129, 140, 248, 0.08), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.06), transparent 45%) !important;
  color: var(--auth-text-main) !important;
  font-family: 'Inter', sans-serif !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background Ambient Glows */
.auth-bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.auth-glow-orb {
  position: fixed;
  top: -10vw;
  left: 50%;
  width: 60vw;
  height: 35vw;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.05) 50%, transparent 75%);
  transform: translateX(-50%);
  z-index: -2;
  pointer-events: none;
  filter: blur(50px);
}

/* Auth Header */
.auth-header {
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.auth-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.auth-logo-box img {
  max-height: 24px;
  max-width: 24px;
  object-fit: contain;
}

.auth-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.auth-brand-name span {
  color: var(--auth-primary);
  text-shadow: 0 0 12px var(--auth-primary-glow);
}

.auth-header-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.auth-back-link {
  color: var(--auth-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-back-link:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Auth Body Container */
.auth-main-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 5% 3rem;
  z-index: 5;
}

.auth-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  max-width: 1100px;
  width: 100%;
  align-items: center;
}

/* Auth Glass Card */
.auth-card {
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-card-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.06);
  position: relative;
  overflow: hidden;
}

.auth-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.auth-card-subtitle {
  color: var(--auth-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Form Groups */
.auth-form-group {
  margin-bottom: 1.3rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--auth-text-main);
  margin-bottom: 0.5rem;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-text-dim);
  font-size: 1rem;
  transition: color 0.25s ease;
  pointer-events: none;
}

.auth-form-control {
  width: 100%;
  background: var(--auth-input-bg) !important;
  border: 1px solid var(--auth-input-border) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem 0.85rem 2.75rem !important;
  font-size: 0.95rem !important;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

.auth-form-control.no-icon {
  padding-left: 1rem !important;
}

.auth-form-control:focus {
  border-color: var(--auth-input-focus) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 0 20px rgba(56, 189, 248, 0.15) !important;
  background: rgba(20, 35, 75, 0.8) !important;
}

.auth-form-control:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--auth-primary);
}

.auth-form-control::placeholder {
  color: var(--auth-text-dim);
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Submit & Social Buttons */
.auth-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--auth-primary) 0%, #0284c7 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.9rem !important;
  border-radius: 10px !important;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, #60a5fa 0%, #0369a1 100%) !important;
}

.auth-btn-vk {
  width: 100%;
  background: rgba(39, 135, 245, 0.15) !important;
  border: 1px solid rgba(39, 135, 245, 0.35) !important;
  color: #5bb2ff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 0.8rem !important;
  border-radius: 10px !important;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 0.8rem;
}

.auth-btn-vk:hover {
  background: #2787f5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(39, 135, 245, 0.4);
}

.auth-card-footer {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--auth-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.4rem;
}

.auth-card-footer a {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-card-footer a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 10px var(--auth-primary-glow);
}

/* Showcase Promo Column (Right side) */
.auth-showcase-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-showcase-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.auth-showcase-header p {
  color: var(--auth-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.auth-feature-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(11, 20, 44, 0.6);
  border: 1px solid var(--auth-card-border);
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.auth-feature-pill:hover {
  transform: translateX(5px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(16, 29, 64, 0.8);
}

.auth-feature-pill-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--auth-primary);
  flex-shrink: 0;
}

.auth-feature-pill h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.auth-feature-pill p {
  font-size: 0.82rem;
  color: var(--auth-text-muted);
  margin: 0;
  line-height: 1.4;
}

.auth-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #34d399;
  font-weight: 600;
  margin-top: 0.5rem;
}

.auth-status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Auth Footer */
.auth-footer {
  padding: 1.5rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--auth-text-dim);
  font-size: 0.85rem;
  z-index: 10;
}

.auth-footer-socials {
  display: flex;
  gap: 1rem;
}

.auth-footer-socials a {
  color: var(--auth-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-footer-socials a:hover {
  color: var(--auth-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .auth-grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .auth-showcase-column {
    display: none;
  }
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 500px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }
}
