/**
 * The Stocks Effect™ — Custom WordPress Login Page
 * Matches the main site's dark premium aesthetic.
 * Uses span-based logo matching the homepage pattern.
 */

/* ============================================
   BACKGROUND & LAYOUT
   ============================================ */
body.login {
  background: linear-gradient(135deg, #0f0f23 0%, #0a0a1a 50%, #12122a 100%) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Subtle radial glow behind the form */
body.login::before {
  content: '';
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   HIDE DEFAULT WP LOGO
   ============================================ */
/* Hide the default WP logo link & its pseudo-elements */
.login h1 a {
  display: none !important;
}

.login h1 {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.login h1::before,
.login h1::after {
  display: none !important;
}

/* Login container — body.login handles vertical centering via flexbox */
#login {
  padding-top: 0 !important;
  width: 100% !important;
  max-width: 320px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}

/* ============================================
   CUSTOM SPAN-BASED LOGO
   ============================================ */
.login-custom-logo {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.login-custom-logo a {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.login-custom-logo a:hover {
  opacity: 0.85;
}

/* "The" — small uppercase */
.login-logo-the {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

/* "Stocks" — large Playfair italic */
.login-logo-stocks {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
}

/* "Effect" — small uppercase */
.login-logo-effect {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

/* Trademark */
.login-logo-tm {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  vertical-align: super;
  margin-left: -2px;
}

/* Tagline */
.login-logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ============================================
   LOGIN FORM
   ============================================ */
.login form {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 28px !important;
  position: relative;
  z-index: 1;
}

/* Labels */
.login form .forgetmenot label,
.login label {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
}

/* Input fields */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: white !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9375rem !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-shadow: none !important;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
  outline: none !important;
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder,
.login input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

/* Submit button */
.login .button-primary {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: white !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  text-shadow: none !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.2s !important;
  cursor: pointer;
  width: 100%;
  height: auto !important;
  margin-top: 8px;
}

.login .button-primary:hover,
.login .button-primary:focus {
  background: linear-gradient(135deg, #5558e6 0%, #7578f0 100%) !important;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-1px);
}

/* Remember me checkbox */
.login .forgetmenot input[type="checkbox"] {
  accent-color: #6366f1;
}

/* ============================================
   LINKS
   ============================================ */
.login #nav,
.login #backtoblog {
  position: relative;
  z-index: 1;
}

.login #nav a,
.login #backtoblog a {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.login #nav a:hover,
.login #backtoblog a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.login #nav {
  text-align: center;
}

/* ============================================
   MESSAGES & ERRORS
   ============================================ */
.login .message,
.login .success {
  background: rgba(99, 102, 241, 0.1) !important;
  border-left-color: #6366f1 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.login #login_error {
  background: rgba(239, 68, 68, 0.1) !important;
  border-left-color: #ef4444 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.login #login_error a {
  color: #a5b4fc !important;
}

/* ============================================
   CUSTOM FOOTER
   ============================================ */
.login-branding-footer {
  text-align: center;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.login-branding-footer p {
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Hide default WordPress footer */
.login .privacy-policy-page-link {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .login form {
    margin: 0 16px !important;
    padding: 24px 20px !important;
  }

  .login-logo-stocks {
    font-size: 1.75rem;
  }
}
