/* ============================================
   AUTH PAGE STYLES — BikeSurSport
   Split-layout login (Accentry / Mondraker style)
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background: #f5f5f5;
}

/* ===== SPLIT LAYOUT ===== */
.login-split {
  display: flex;
  min-height: 100vh;
}

/* --- Left: Hero image --- */
.login-hero {
  position: relative;
  flex: 1;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.login-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 15, 25, 0.85) 0%,
      rgba(10, 15, 25, 0.3) 40%,
      rgba(10, 15, 25, 0.15) 100%);
}

.login-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  width: 100%;
}

.login-hero-tagline {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  max-width: 360px;
  letter-spacing: 0.3px;
}

/* --- Right: Form side --- */
.login-form-side {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 40px;
}

.login-form-wrapper {
  width: 100%;
  max-width: 360px;
}

/* Brand */
.login-brand {
  margin-bottom: 40px;
}

.login-logo {
  font-size: 26px;
  font-weight: 700;
  color: #1a2332;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #e8930c;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Title */
.login-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a2332;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.alert-icon {
  font-size: 16px;
}

/* Form */
.auth-form .form-group {
  margin-bottom: 24px;
}

.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  font-size: 15px;
  font-family: inherit;
  color: #1a2332;
  transition: border-color 0.2s;
  background: transparent;
  outline: none;
}

.auth-form input:focus {
  border-bottom-color: #1a2332;
}

.auth-form input::placeholder {
  color: #c4c9d2;
}

/* Password field */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 8px;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #1a2332;
}

/* Login button */
.btn-login {
  display: block;
  width: 100%;
  padding: 16px 24px;
  margin-top: 8px;
  background: #1a2332;
  color: #ffffff;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover {
  background: #2c3e50;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

/* Help text */
.login-help {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.login-help p {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}

.login-help a {
  color: #1a2332;
  font-weight: 600;
  text-decoration: none;
}

.login-help a:hover {
  text-decoration: underline;
}

/* Footer */
.login-footer {
  margin-top: 48px;
}

.login-footer p {
  font-size: 11px;
  color: #d1d5db;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .login-split {
    flex-direction: column;
  }

  .login-hero {
    min-height: 30vh;
    flex: none;
  }

  .login-hero-content {
    padding: 24px;
  }

  .login-hero-tagline {
    font-size: 16px;
  }

  .login-form-side {
    width: 100%;
    padding: 32px 24px;
  }
}