/* =============================================
   SPONSORAI — Investor Login Page
   Extends style.css — do not import standalone
   ============================================= */

/* Use alternate background image for investor pages */
.bg-image {
  background-image: url('images/sports-bg2.jpg');
}

/* Override hero alignment — login is centred, not bottom-anchored */
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 60px;
}

/* Logo as a link */
.header__logo {
  text-decoration: none;
  color: #ffffff;
}

/* Badge as a link */
.header__badge {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.header__badge:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

/* === Login card === */
.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 44px 40px 40px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

/* Eyebrow */
.login-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  margin-bottom: 20px;
}

/* Heading */
.login-card__heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

/* Subtitle */
.login-card__sub {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* === Form === */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

.login-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.90);
  caret-color: rgba(255, 255, 255, 0.6);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.20);
}

.login-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

/* Error state on inputs */
.login-input.is-error {
  border-color: rgba(255, 100, 80, 0.50);
}

/* Error message */
.login-error {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 110, 90, 0.90);
  min-height: 18px;
  margin-top: -4px;
  transition: opacity 0.2s ease;
}

/* === Submit button === */
.login-btn {
  margin-top: 8px;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a0a10;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.login-btn:hover {
  background: #ffffff;
}

.login-btn:active {
  transform: scale(0.99);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-btn__arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.login-btn:hover:not(:disabled) .login-btn__arrow {
  transform: translateX(3px);
}

/* Loading state */
.login-btn.is-loading .login-btn__text {
  opacity: 0.6;
}

/* === Responsive === */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px 28px;
    border-radius: 12px;
  }

  .login-card__heading {
    font-size: 24px;
  }
}

/* === Mobile image swap === */
@media (max-width: 767px) {
  .bg-image {
    background-image: url('images/sports-bg2-mob.jpg');
  }
}
