/* padelbuy-login.css */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-main, Arial, sans-serif);
    background: var(--body-bg, #f6fbfc);
    color: var(--body-text, #0f172a);
}

a {
    color: var(--link-color, #287f89);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color, #e76b2b);
}

.login-top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--topbar-bg, rgba(15, 23, 42, .88));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-2, rgba(95, 180, 189, .18));
}

.login-top-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.brand::before {
    content: "";
    width: 48px;
    height: 48px;
    display: block;
    background-image: var(--logo-image);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 10px var(--logo-shadow-color, #5fb4bd));
}

.brand-text .t1 {
    font-size: 18px;
    font-weight: 950;
    letter-spacing: .08em;
    color: #ffffff;
}

.brand-text .t2 {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .68);
}
/* tag in alto a destra nella topbar (es. "Area Riservata" / "Registrazione") */
.login-top-tag {
    color: rgba(255, 255, 255, .68);
    font-weight: 700;
    font-size: 13px;
}

.login-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 90px;
}

.login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 34px;
    align-items: center;
}

.login-hero {
    padding: 28px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--cashback-badge-bg, rgba(231, 107, 43, .14));
    border: 1px solid var(--cashback-badge-border, rgba(231, 107, 43, .50));
    color: var(--gold-strong, #e76b2b);
    font-weight: 950;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-title {
    margin: 18px 0 12px;
    color: var(--heading-color, #263246);
    font-size: clamp(42px, 7vw, 76px);
    line-height: .92;
    letter-spacing: -.06em;
    font-weight: 950;
}

.hero-sub {
    max-width: 580px;
    margin: 0;
    color: var(--text-muted, rgba(15, 23, 42, .62));
    font-size: 18px;
    line-height: 1.55;
    font-weight: 650;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 13px;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark-2, #263246);
    font-weight: 800;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--gold-main, #5fb4bd);
    box-shadow: 0 0 0 7px var(--gold-shadow-soft, rgba(95, 180, 189, .24));
    flex: 0 0 auto;
}

.login-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--container-radius, 22px);
    padding: 30px;
    background: var(--auth-card-bg, rgba(255, 255, 255, .96));
    border: 1px solid var(--auth-card-border, rgba(95, 180, 189, .24));
    box-shadow:
        var(--container-shadow-1, 0 0 34px rgba(95, 180, 189, .16)),
        var(--container-shadow-2, 0 22px 58px rgba(15, 23, 42, .16));
}

.card-head {
    margin-bottom: 22px;
}

.card-eyebrow {
    color: var(--auth-eyebrow, #287f89);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.card-title {
    margin-top: 7px;
    color: var(--text-dark-1, #101827);
    font-size: 31px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.card-sub {
    margin: 10px 0 0;
    color: var(--auth-subtitle, rgba(15, 23, 42, .72));
    font-weight: 650;
    line-height: 1.45;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 14px 15px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 850;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}

.auth-alert ul {
    padding-left: 18px;
    margin: 0;
}

.auth-alert-success {
    background: var(--alert-success-bg, linear-gradient(90deg, #2f9e44, #51cf66));
}

.auth-alert-error {
    background: var(--alert-error-bg, linear-gradient(90deg, #ff4e50, #ef4444));
}

.form-row {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    color: var(--label-color, rgba(15, 23, 42, .72));
    font-size: 13px;
    font-weight: 900;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    border-radius: var(--control-radius, 14px);
    border: 1px solid var(--auth-input-border, rgba(95, 180, 189, .42));
    background: var(--auth-input-bg, rgba(255, 255, 255, .96));
    color: var(--auth-input-text, #0f172a);
    padding: 0 15px;
    font: inherit;
    font-weight: 750;
    outline: none;
    transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.auth-input::placeholder {
    color: var(--auth-placeholder, rgba(100, 116, 139, .82));
}

.auth-input:focus {
    background: var(--auth-input-bg-focus, #ffffff);
    border-color: var(--control-focus-border, rgba(231, 107, 43, .70));
    box-shadow:
        var(--auth-focus-ring-1, 0 0 0 1px rgba(231, 107, 43, .52)),
        var(--auth-focus-ring-2, 0 0 0 6px rgba(231, 107, 43, .14));
}

.row-split {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 2px 0 18px;
}

.auth-forgot a {
    font-size: 13px;
    font-weight: 900;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: var(--auth-submit-bg, linear-gradient(135deg, #e76b2b, #ff9f43));
    color: var(--auth-submit-text, #ffffff);
    box-shadow: var(--auth-submit-shadow, 0 10px 25px rgba(231, 107, 43, .35));
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--auth-submit-shadow-hover, 0 14px 32px rgba(231, 107, 43, .48));
    filter: brightness(1.03);
}

.auth-submit:active {
    transform: translateY(1px);
    box-shadow: var(--auth-submit-shadow-active, 0 6px 18px rgba(231, 107, 43, .38));
}

.auth-helper,
.auth-note {
    color: var(--auth-helper, rgba(15, 23, 42, .70));
    font-weight: 650;
    line-height: 1.45;
}

.auth-helper {
    margin: 18px 0 0;
    text-align: center;
}

.auth-note {
    margin: 20px 0 0;
    font-size: 13px;
}

.auth-note strong {
    color: var(--text-dark-1, #101827);
}

.info-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    border: 1px solid var(--gold-border-soft, rgba(95, 180, 189, .34));
    background: var(--gold-soft-bg, #e8fbfc);
    color: var(--link-color, #287f89);
    font-weight: 950;
    cursor: pointer;
}

.login-foot {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--footer-bg, rgba(255, 255, 255, .72));
    color: var(--text-muted, rgba(15, 23, 42, .62));
    border-top: 1px solid var(--border-2, rgba(95, 180, 189, .18));
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 800;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 24px;
    background: var(--overlay-bg, rgba(7, 17, 31, .62));
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-box {
    width: min(460px, 100%);
    border-radius: 22px;
    padding: 26px;
    background: var(--popup-card-bg, linear-gradient(145deg, #ffffff 0%, #f5fbfc 100%));
    color: var(--text-dark-1, #101827);
    border: 1px solid var(--auth-card-border, rgba(95, 180, 189, .24));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22), 0 0 0 1px var(--popup-border-shadow, rgba(95, 180, 189, .22));
    text-align: center;
}

.popup-box h2 {
    margin: 0 0 12px;
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -.04em;
    color: var(--heading-color, #263246);
}

.popup-box p {
    margin: 0 0 12px;
    color: var(--text-muted, rgba(15, 23, 42, .62));
    line-height: 1.5;
    font-weight: 700;
}

.btn-bonus-confirm,
.btn-bonus-cancel {
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
}

.btn-bonus-confirm {
    background: var(--auth-submit-bg, linear-gradient(135deg, #e76b2b, #ff9f43));
    color: var(--auth-submit-text, #ffffff);
    box-shadow: var(--auth-submit-shadow, 0 10px 25px rgba(231, 107, 43, .35));
}

.btn-bonus-cancel {
    background: var(--surface-2, rgba(15, 23, 42, .08));
    color: var(--text-dark-2, #263246);
    border: 1px solid var(--border-1, rgba(15, 23, 42, .08));
}

@media (max-width: 860px) {
    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-hero {
        padding-bottom: 0;
    }

    .hero-title {
        font-size: clamp(40px, 15vw, 64px);
    }
}

@media (max-width: 520px) {

    .login-top-inner,
    .login-shell {
        width: min(100% - 22px, 1120px);
    }

    .login-shell {
        padding-top: 28px;
    }

    .login-card {
        padding: 22px;
        border-radius: 20px;
    }

    .brand::before {
        width: 42px;
        height: 42px;
    }

    .brand-text .t1 {
        font-size: 16px;
    }

    .hero-points li {
        align-items: flex-start;
    }

    body.is-padelbuy .login-hero {
        display: none;
    }

    body.is-padelbuy .login-grid {
        grid-template-columns: minmax(360px, 520px);
        justify-content: center;
    }

    body.is-padelbuy .login-shell {
        display: flex;
        justify-content: center;
    }
}