/* Modern Auth Pages Styles - scoped to .auth-page */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: radial-gradient(1200px 600px at 10% 10%, #ecf3ff 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 20%, #ffeef4 0%, transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.auth-hero {
  display: none;
}

@media (min-width: 992px) {
  .auth-hero {
    display: flex;
    flex: 1;
    padding: 64px 48px;
    background: #212123; /* requested solid background */
    position: relative;
    overflow: hidden;
  }
  /* Ensure no decorative circles behind the hero on large screens */
  .auth-hero::before,
  .auth-hero::after {
    content: none !important;
  }
  .auth-hero-inner {
    z-index: 1;
    max-width: 520px;
    margin: auto 0;
    color: #ffffff; /* white text */
  }
  .auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .auth-hero h1 {
    font-size: 40px;
    line-height: 1.1;
    margin: 16px 0 12px;
    font-weight: 800;
    color: #ffffff;
  }
  .auth-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
  }
  .auth-hero-points {
    margin-top: 16px;
    display: grid;
    gap: 10px;
  }
  .auth-hero-points li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
  }
}

.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.10);
  padding: 28px;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}

.auth-subtitle {
  font-size: 14px;
  color: #475569;
  margin-top: 6px;
}

.input-with-icon {
  position: relative;
}

/* Wrap for accurate icon centering relative to the input (not the label) */
.input-control-wrap {
  position: relative;
}

.input-with-icon .form-control {
  padding-left: 42px;
  height: 46px;
  border-radius: 12px;
  border-color: #e2e8f0;
}

.input-with-icon .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Position icons inside the input wrapper */
.input-control-wrap .field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-control-wrap .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  padding: 4px;
  z-index: 1;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.auth-submit {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
  font-weight: 700;
}

/* Dark variant for black buttons */
.auth-submit--dark {
  background: #0f172a !important;
  border: 1px solid #0b1220 !important;
}

.auth-submit:hover {
  filter: brightness(1.03);
}

.auth-alt {
  text-align: center;
  color: #64748b;
  margin: 14px 0 6px;
}

.social-buttons {
  display: flex;
  gap: 10px;
}

.social-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
}

/* Colored providers */
.social-button.google {
  background: #ea4335;
  color: #ffffff;
  border-color: #ea4335;
}
.social-button.google:hover { filter: brightness(1.05); }

.social-button.facebook {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}
.social-button.facebook:hover { filter: brightness(1.05); }

.social-button:hover {
  background: #f8fafc;
}

.auth-footer {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: #475569;
}

.auth-footer a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
}

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

/* Turnstile spacing */
.cf-turnstile { margin: 14px 0; }

/* Validation errors using Bootstrap alerts but with softer style */
.alert.alert-danger {
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
} 