/*
 * Authentication pages, 2026 design (Figma "Login").
 * Used by app/Resources/FOSUserBundle/views/Security/login.html.twig; the classes
 * are generic (auth-*) so the register / reset password pages can reuse them.
 */
/* As in the Figma, the header sits on the page background (no white band) */
.auth-layout .site-header:not(#scroll-header) {
    background: transparent;
    border-bottom: none;
}

.auth-page {
    padding: 2.4rem 1rem 1rem;
}

.auth-card {
    max-width: 783px;
    margin: 0 auto;
    border-radius: 40px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .18);
}

/* ---------- Blue band with logo and circles ---------- */
.auth-card-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 272px;
    background: var(--blue);
    overflow: hidden;
}

.auth-card-logo {
    position: relative;
    z-index: 1;
    width: 282px;
    max-width: 60vw;
    height: auto;
}

.auth-deco {
    position: absolute;
    border-radius: 50%;
}

.auth-deco--gold-top {
    top: -9px;
    left: 19%;
    width: 68px;
    height: 68px;
    background: var(--gold);
}

.auth-deco--white {
    top: 121px;
    left: -8px;
    width: 100px;
    height: 100px;
    background: #fff;
    z-index: 1;
}

.auth-deco--light-left {
    top: 187px;
    left: 40px;
    width: 68px;
    height: 68px;
    background: var(--blue-light);
}

.auth-deco--light-right {
    top: 70px;
    right: 36px;
    width: 100px;
    height: 100px;
    background: var(--blue-light);
}

.auth-deco--gold-right {
    top: 187px;
    right: 86px;
    width: 68px;
    height: 68px;
    background: var(--gold);
}

/* ---------- Body ---------- */
.auth-card-body {
    padding: 2.6rem 2.6rem 2.2rem;
}

.auth-title {
    margin: 0 0 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    text-align: center;
    color: var(--text-dark);
}

.auth-title strong {
    font-weight: 600;
}

.auth-form {
    max-width: 346px;
    margin: 0 auto;
}

/* Intro / confirmation text (password reset pages) */
.auth-text {
    max-width: 420px;
    margin: 0 auto 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
    color: var(--text-dark);
}

.auth-text--muted {
    color: var(--text-muted);
}

/* full-width submit (single-field forms) */
.auth-submit--block {
    display: block;
    width: 100%;
    margin-top: 4px;
}

.auth-input {
    display: block;
    width: 100%;
    height: 56px;
    margin: 0 0 20px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--bg);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.auth-input:focus {
    border-color: var(--blue);
    background: #fff;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--blue);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease;
}

.auth-check input:checked {
    background: var(--blue) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.auth-check input:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

.auth-submit {
    flex: 0 0 166px;
    height: 56px;
    border: none;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease, transform .2s ease;
}

.auth-submit:hover {
    background: var(--hover, #1A7AC4);
    transform: translateY(-2px);
}

.auth-or {
    margin: 14px 0;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    text-align: center;
    color: var(--text-muted);
}

.auth-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: 100%;
    height: 56px;
    border-radius: 10px;
    background: #41589B;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .3s ease, transform .2s ease;
}

.auth-facebook:hover {
    background: #34487f;
    color: #fff;
    transform: translateY(-2px);
}

.auth-facebook svg {
    width: 26px;
    height: 26px;
}

.auth-error {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdecec;
    color: #d8322f;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
}

.auth-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: 2.4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--blue);
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    color: var(--text-dark);
}

.auth-footer a {
    font-weight: 600;
    color: var(--blue);
    text-decoration: underline;
}

.auth-footer a:hover {
    color: var(--hover, #1A7AC4);
}

/* "Registrati" as a call to action (outlined pill) */
.auth-footer a.auth-cta {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    background: transparent;
    color: var(--blue);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}

.auth-footer a.auth-cta:hover,
.auth-footer a.auth-cta:focus {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
    .auth-page {
        padding-top: 1.5rem;
    }

    .auth-card {
        border-radius: 26px;
    }

    .auth-card-hero {
        height: 190px;
    }

    .auth-card-logo {
        width: 210px;
    }

    .auth-deco--gold-top,
    .auth-deco--light-left,
    .auth-deco--gold-right {
        width: 46px;
        height: 46px;
    }

    .auth-deco--white,
    .auth-deco--light-right {
        width: 70px;
        height: 70px;
    }

    .auth-deco--white {
        top: 86px;
    }

    .auth-deco--light-left {
        top: 134px;
        left: 28px;
    }

    .auth-deco--light-right {
        top: 40px;
        right: -14px;
    }

    .auth-deco--gold-right {
        top: 128px;
        right: 34px;
    }

    .auth-card-body {
        padding: 2rem 1.4rem 1.8rem;
    }

    .auth-title {
        font-size: 1.2rem;
    }

    .auth-submit {
        flex-basis: 150px;
    }

    .auth-footer {
        justify-content: center;
        text-align: center;
    }

    .auth-footer a.auth-cta {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
