/* Safari FIFA 26 — Login Page */

html.login-active,
body.login-active {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body.login-active .bg-canvas,
body.login-active .app-splash {
    display: none !important;
}

body.login-active .app-shell {
    max-width: none !important;
    width: 100% !important;
    min-height: 100vh;
    min-height: 100dvh;
}

body.login-active .login-page-main {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
}

.login-page {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 5;
}

.login-page__bg {
    position: absolute;
    inset: 0;
    background-color: #071a3d;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-page__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.35) 0%, rgba(3, 7, 18, 0.15) 45%, rgba(7, 26, 61, 0.75) 70%, rgba(7, 26, 61, 0.88) 100%),
        linear-gradient(180deg, transparent 55%, rgba(3, 7, 18, 0.92) 100%);
    pointer-events: none;
}

.login-page__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 2rem 0;
    box-sizing: border-box;
}

/* Top bar */
.login-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.login-top__logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.login-top__wc {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

.login-top__wc-badge {
    font-size: 1rem;
}

/* Main grid */
.login-page__grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 400px);
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 1rem;
}

/* Left hero */
.login-hero-panel {
    padding-right: 1rem;
}

.login-hero-panel__title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.login-hero-panel__title .gold {
    background: linear-gradient(135deg, #F4C542 0%, #FFD700 45%, #FFF3B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-hero-panel__tagline {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #00D7C3;
    margin: 1rem 0 0.35rem;
}

.login-hero-panel__event {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.login-hero-panel__countdown-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.65rem;
}

.login-countdown {
    justify-content: flex-start;
    margin: 0 0 1.75rem;
}

.login-countdown .countdown-unit {
    background: rgba(7, 26, 61, 0.65);
    border: 1px solid rgba(0, 198, 255, 0.35);
    backdrop-filter: blur(8px);
}

.login-countdown .countdown-unit .num {
    font-size: 1.75rem;
    color: #00D7C3;
}

/* Stats row */
.login-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 520px;
}

.login-stat {
    background: rgba(7, 26, 61, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    backdrop-filter: blur(6px);
}

.login-stat__num {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #00C6FF;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.login-stat__lbl {
    display: block;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

/* Login card */
.login-card {
    background: rgba(7, 26, 61, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 198, 255, 0.35);
    border-radius: 20px;
    padding: 2.5rem 1.75rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    position: relative;
}

.login-card__badge {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(7, 26, 61, 0.95);
    border: 2px solid rgba(0, 198, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.login-card__badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card__eyebrow {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.login-card__title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.35rem;
}

.login-card__desc {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
}

.login-field {
    margin-bottom: 0.9rem;
}

.login-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-field__icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.login-field__input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 198, 255, 0.22);
    background: rgba(7, 26, 61, 0.92);
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.login-field__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.login-field__input:focus {
    outline: none;
    border-color: #00C6FF;
    background: rgba(7, 26, 61, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.15);
}

/* Keep autofill dark — browsers default to white/yellow */
.login-field__input:-webkit-autofill,
.login-field__input:-webkit-autofill:hover,
.login-field__input:-webkit-autofill:focus,
.login-field__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #071a3d inset !important;
    box-shadow: 0 0 0 1000px #071a3d inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border: 1px solid rgba(0, 198, 255, 0.22);
    transition: background-color 99999s ease-out 0s;
}

.login-field__toggle {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0.25rem;
    z-index: 1;
}

.login-field__toggle:hover {
    color: #00D7C3;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    font-size: 0.78rem;
    gap: 0.5rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
}

.login-remember input {
    accent-color: #00C6FF;
    width: 16px;
    height: 16px;
}

.login-forgot {
    color: #00D7C3;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.login-forgot:hover {
    color: #00C6FF;
}

.login-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #071A3D;
    background: linear-gradient(90deg, #00D7C3 0%, #00C6FF 100%);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 28px rgba(0, 198, 255, 0.35);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 198, 255, 0.5);
}

.login-register--staff {
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.login-change-pass {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00D7C3;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.login-change-pass:hover {
    color: #00C6FF;
}

/* Change password modal */
.login-modal .modal-content.login-modal__content {
    background: rgba(7, 26, 61, 0.96);
    border: 1px solid rgba(0, 198, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.login-modal__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem 1.25rem;
}

.login-modal__header .modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.login-modal__body {
    padding: 1.25rem;
}

.login-modal__hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.login-modal__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    gap: 0.75rem;
}

.login-modal__cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.login-modal__cancel:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.login-modal__save {
    width: auto;
    padding: 0.6rem 1.5rem;
    letter-spacing: 0.08em;
}

/* Feature bar */
.login-features {
    margin-top: auto;
    padding: 0.85rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.login-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.login-feature__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 198, 255, 0.12);
    border: 1px solid rgba(0, 198, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.login-feature__label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.login-feature__label strong {
    display: block;
    color: #00D7C3;
    font-size: 0.6rem;
}

.login-footer-tagline {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
}

.login-alerts {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 100;
    width: min(400px, calc(100% - 2rem));
}

.login-alerts .glass-alert {
    margin-bottom: 0.5rem;
}

/* ========== MOBILE ========== */
@media (max-width: 991.98px) {
    html.login-active,
    body.login-active {
        overflow-y: auto;
    }

    body.login-active .login-page-main {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        min-height: 100dvh !important;
        overflow: visible;
    }

    .login-page {
        position: relative;
        width: 100%;
        min-height: 100dvh;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .login-page__content {
        padding: 1rem;
        min-height: 100dvh;
    }

    .login-top__logo {
        height: 40px;
    }

    .login-page__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: start;
    }

    .login-hero-panel {
        text-align: center;
        padding-right: 0;
    }

    .login-countdown {
        justify-content: center;
    }

    .login-stats {
        max-width: none;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
    }

    .login-card {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .login-alerts {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .login-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .login-top__wc span:not(.login-top__wc-badge) {
        display: none;
    }

    .login-card {
        padding: 2rem 1.25rem 1.5rem;
    }
}
