/**
 * MyFutbol Login — v4.0  "The Beautiful Game"
 * Full dark split-panel — Space Grotesk headlines, animated orbs, gradient text
 * ─────────────────────────────────────────────────────────────────────────────
 * Blue:    #3b82f6  /  #60a5fa
 * Purple:  #8b5cf6
 * Dark:    #060e1c  /  #0a1628
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ================================================
   RESET & ROOT
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background: #060e1c;
}

/* ================================================
   LEFT PANEL — Brand / Hero
   ================================================ */
.lp-left {
    width: 55%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    overflow: hidden;
    background: #060e1c;
    flex-shrink: 0;
}

/* Animated radial glow background */
.lp-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(59,130,246,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 85% 85%, rgba(139,92,246,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(59,130,246,0.10) 0%, transparent 70%);
    animation: bgShift 9s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bgShift {
    0%   { opacity: 1;    transform: scale(1);    }
    100% { opacity: 0.82; transform: scale(1.07); }
}

/* Soccer-pitch grid texture */
.lp-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

/* Floating orbs */
.lp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    animation: orbFloat 7s ease-in-out infinite;
    pointer-events: none;
}
.lp-orb-1 { width: 340px; height: 340px; background: #3b82f6; opacity: 0.22; top: -110px; right: -110px; animation-delay: 0s;   }
.lp-orb-2 { width: 240px; height: 240px; background: #60a5fa; opacity: 0.18; bottom: 60px; left: 10px;   animation-delay: 2.5s; }
.lp-orb-3 { width: 170px; height: 170px; background: #f59e0b; opacity: 0.13; bottom: -50px; right: 160px; animation-delay: 5s;  }

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-24px); }
}

/* Content layer */
.lp-content { position: relative; z-index: 2; }

/* ── Brand ── */
.lp-brand { display: flex; align-items: center; gap: 0.875rem; }

.lp-brand-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(59,130,246,0.5), 0 0 0 1px rgba(59,130,246,0.3);
    flex-shrink: 0;
}
.lp-brand-icon img { width: 38px; height: 38px; object-fit: contain; filter: brightness(0) invert(1); }

.lp-brand-label { line-height: 1.25; }
.lp-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: -0.2px;
}
.lp-brand-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ── Live badge ── */
.lp-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    background: rgba(59,130,246,0.14);
    border: 1px solid rgba(59,130,246,0.32);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4.5rem;
    width: fit-content;
}
.lp-live-dot {
    width: 7px; height: 7px;
    background: #60a5fa;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1);   }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Hero headline ── */
.lp-hero { margin-top: 1.5rem; }

.lp-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 3.8vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.lp-hero h1 .grad {
    background: linear-gradient(90deg, #60a5fa 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero p {
    margin-top: 1.375rem;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 400px;
}

/* ── Features ── */
.lp-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}
.lp-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}
.lp-features li .lp-check {
    width: 20px; height: 20px;
    background: rgba(139,92,246,0.16);
    border: 1px solid rgba(59,130,246,0.38);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #60a5fa;
    font-size: 0.65rem;
}

/* ── Stats ── */
.lp-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.lp-stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.lp-stat-val em { color: #60a5fa; font-style: normal; }
.lp-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.38);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ── Footer ── */
.lp-footer { position: relative; z-index: 2; color: rgba(255,255,255,0.22); font-size: 0.77rem; }

/* ================================================
   RIGHT PANEL — Form
   ================================================ */
.lp-right {
    flex: 1;
    background: #0a1628;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.05);
}

/* Top gradient accent bar */
.lp-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #f59e0b 100%);
}

/* Subtle top glow */
.lp-right::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 300px;
    background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(59,130,246,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Language switcher */
.lp-lang {
    position: absolute;
    top: 1.75rem;
    right: 2rem;
    display: flex;
    gap: 0.375rem;
    z-index: 5;
}
.lp-lang-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    color: rgba(255,255,255,0.38);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}
.lp-lang-btn:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.09); }
.lp-lang-btn.active {
    color: #ffffff;
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.45);
}

/* Form wrapper */
.lp-form-wrap {
    width: 100%;
    max-width: 385px;
    position: relative;
    z-index: 1;
}

/* Eyebrow badge */
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.22);
    color: #60a5fa;
    padding: 0.35rem 0.95rem;
    border-radius: 99px;
    font-size: 0.77rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lp-eyebrow i { font-size: 0.8rem; }

/* Heading */
.lp-form-wrap h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.3px;
}
.lp-form-subtitle {
    color: rgba(255,255,255,0.42);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* Alert */
.lp-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.8rem 1rem;
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.3);
    border-radius: 10px;
    margin-bottom: 1.375rem;
    font-size: 0.875rem;
    color: #fca5a5;
    font-weight: 500;
    animation: alertShake 0.4s ease;
}
.lp-alert-success {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.3);
    color: #6ee7b7;
}
@keyframes alertShake {
    0%, 100% { transform: translateX(0);   }
    20%, 60%  { transform: translateX(-4px); }
    40%, 80%  { transform: translateX(4px);  }
}

/* Form */
.lp-form { display: flex; flex-direction: column; }
.lp-form-group { margin-bottom: 1.25rem; }

.lp-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.58);
    margin-bottom: 0.45rem;
    letter-spacing: 0.03em;
}

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

.lp-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.28);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.lp-input {
    width: 100%;
    padding: 0.8125rem 1rem 0.8125rem 2.75rem;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lp-input:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); }
.lp-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(59,130,246,0.07);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.lp-input:focus + .lp-input-icon,
.lp-input-wrap:focus-within .lp-input-icon { color: rgba(139,92,246,0.7); }
.lp-input::placeholder { color: rgba(255,255,255,0.2); }

.lp-toggle-pw {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.28);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 2;
    padding: 0.25rem;
    transition: color 0.15s;
}
.lp-toggle-pw:hover { color: rgba(255,255,255,0.7); }

/* Options row */
.lp-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lp-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}
.lp-remember input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: #3b82f6;
    cursor: pointer;
}
.lp-remember span { font-size: 0.84rem; color: rgba(255,255,255,0.42); }
.lp-forgot {
    font-size: 0.84rem;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.lp-forgot:hover { opacity: 1; text-decoration: underline; }

/* Submit */
.lp-btn {
    width: 100%;
    padding: 0.9375rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(59,130,246,0.4), 0 1px 3px rgba(59,130,246,0.3);
}
/* Shimmer overlay */
.lp-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
}
.lp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59,130,246,0.55), 0 2px 6px rgba(59,130,246,0.3);
}
.lp-btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(59,130,246,0.35); }
.lp-btn.loading { pointer-events: none; opacity: 0.72; }
.lp-btn.loading .lp-btn-icon { animation: spin 0.8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Divider */
.lp-divider {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 1.5rem 0;
    color: rgba(255,255,255,0.2);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 500;
}
.lp-divider::before, .lp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

/* Secure badge */
.lp-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.25);
    font-size: 0.77rem;
}
.lp-secure .fa-shield-halved { color: #3b82f6; font-size: 0.8rem; }

/* Sign up */
.lp-signup {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.38);
}
.lp-signup a {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.lp-signup a:hover { opacity: 0.8; text-decoration: underline; }

/* ================================================
   MOBILE
   ================================================ */
@media (max-width: 900px) {
    .lp-left { display: none; }
    .lp-right { width: 100%; border-left: none; }
    .lp-form-wrap { max-width: 100%; }
}

@media (max-width: 480px) {
    .lp-right { padding: 4.5rem 1.5rem 2.5rem; align-items: flex-start; }
    .lp-form-wrap h2 { font-size: 1.875rem; }
}

/* ================================================
   CAPTCHA (reCAPTCHA dark theme wrapper)
   ================================================ */
.lp-captcha-wrap {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    animation: fadeSlideIn 0.3s ease;
}
.lp-captcha-wrap .g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ================================================
   LOCKOUT ALERT
   ================================================ */
.lp-alert-lockout {
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.35);
    color: #fcd34d;
}
.lp-alert-lockout i { color: #f59e0b; }

/* ================================================
   GOOGLE SIGN-IN BUTTON
   ================================================ */
.lp-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8125rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.02em;
}
.lp-google-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    color: #ffffff;
}
.lp-google-btn:active {
    transform: translateY(0);
    box-shadow: none;
}
.lp-google-icon {
    flex-shrink: 0;
}
