/* =========================================================
   CASALINDA TAINA - AUTHENTICATION POPUP
   ========================================================= */

#authentication-popup.cl-auth-dialog {
    width: min(940px, calc(100vw - 40px));
    max-width: none;
    max-height: min(820px, calc(100dvh - 40px));
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    color: #17293b;
    box-shadow:
        0 30px 80px rgba(9, 27, 44, 0.28),
        0 8px 24px rgba(9, 27, 44, 0.12);
}

#authentication-popup.cl-auth-dialog::backdrop {
    background: rgba(7, 22, 36, 0.68);
    backdrop-filter: blur(4px);
}

#authentication-popup .cl-auth-shell {
    position: relative;
    border-top: 6px solid #dcc62a;
    background: #ffffff;
}

#authentication-popup .cl-auth-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px 24px;
    border-bottom: 1px solid #e8edf1;
}

#authentication-popup .cl-auth-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

#authentication-popup .cl-auth-brandmark {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 62px;
    padding: 11px 18px;
    border-radius: 16px;
    background: #10263a;
}

#authentication-popup .cl-auth-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

#authentication-popup .cl-auth-brandcopy {
    min-width: 0;
}

#authentication-popup .cl-auth-kicker,
#authentication-popup .cl-auth-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #9b8610;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#authentication-popup .cl-auth-title {
    margin: 0;
    color: #10263a;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.12;
}

#authentication-popup .cl-auth-subtitle {
    max-width: 520px;
    margin: 7px 0 0;
    color: #667684;
    font-size: 14px;
    line-height: 1.55;
}

#authentication-popup .cl-auth-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #dde4e9;
    border-radius: 999px;
    background: #f6f8f9;
    color: #10263a;
    cursor: pointer;
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

#authentication-popup .cl-auth-close:hover {
    border-color: #dcc62a;
    background: #fff9d8;
    transform: rotate(4deg);
}

#authentication-popup .cl-auth-error {
    margin: 18px 30px 0;
    padding: 12px 15px;
    border: 1px solid #f0b8b8;
    border-radius: 12px;
    background: #fff3f3;
    color: #9b2525;
}

#authentication-popup .cl-auth-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
}

#authentication-popup .cl-auth-login,
#authentication-popup .cl-auth-new {
    padding: 34px 34px 36px;
}

#authentication-popup .cl-auth-login {
    background: #ffffff;
}

#authentication-popup .cl-auth-new {
    position: relative;
    border-left: 1px solid #e5eaee;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(220, 198, 42, .18),
            transparent 36%
        ),
        #f5f7f8;
}

#authentication-popup .cl-auth-new::before {
    content: "";
    position: absolute;
    top: 34px;
    left: -1px;
    width: 4px;
    height: 48px;
    border-radius: 0 4px 4px 0;
    background: #dcc62a;
}

#authentication-popup .cl-auth-eyebrow-new {
    color: #74630b;
}

#authentication-popup .cl-auth-section-title {
    margin: 0;
    color: #10263a;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

#authentication-popup .cl-auth-copy {
    margin: 8px 0 22px;
    color: #687887;
    font-size: 14px;
    line-height: 1.55;
}

#authentication-popup .cl-auth-fields {
    display: grid;
    gap: 18px;
}

#authentication-popup .cl-auth-label {
    display: block;
    margin-bottom: 7px;
    color: #26394b;
    font-size: 13px;
    font-weight: 700;
}

#authentication-popup .cl-auth-input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #ced7de;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #10263a;
    font-size: 15px;
    box-shadow: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

#authentication-popup .cl-auth-input:hover {
    border-color: #a9b6c0;
}

#authentication-popup .cl-auth-input:focus {
    border-color: #c6ad13;
    box-shadow: 0 0 0 4px rgba(220, 198, 42, .18);
}

#authentication-popup .cl-auth-login-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
}

#authentication-popup .cl-auth-primary,
#authentication-popup .cl-auth-secondary {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

#authentication-popup .cl-auth-primary {
    width: 100%;
    border: 1px solid #dcc62a;
    background: #dcc62a;
    color: #10263a;
    box-shadow: 0 8px 18px rgba(220, 198, 42, .20);
}

#authentication-popup .cl-auth-primary:hover {
    background: #e5cf30;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(220, 198, 42, .26);
}

#authentication-popup .cl-auth-primary:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    box-shadow: none;
}

#authentication-popup .cl-auth-forgot {
    align-self: center;
    color: #24435d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(36, 67, 93, .35);
    text-underline-offset: 3px;
}

#authentication-popup .cl-auth-forgot:hover {
    color: #8e7a0c;
    text-decoration-color: #dcc62a;
}

#authentication-popup .cl-auth-benefits {
    display: grid;
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

#authentication-popup .cl-auth-benefits li {
    position: relative;
    padding-left: 31px;
    color: #344a5d;
    font-size: 14px;
    line-height: 1.45;
}

#authentication-popup .cl-auth-benefits li::before {
    content: "✓";
    position: absolute;
    top: -1px;
    left: 0;
    display: inline-flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dcc62a;
    color: #10263a;
    font-size: 12px;
    font-weight: 900;
}

#authentication-popup .cl-auth-secondary {
    width: 100%;
    border: 1px solid #10263a;
    background: #10263a;
    color: #ffffff;
}

#authentication-popup .cl-auth-secondary:hover {
    background: #1b3a53;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 38, 58, .18);
}

#authentication-popup .cl-auth-secure {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #dfe5e9;
}

#authentication-popup .cl-auth-secure strong {
    color: #10263a;
    font-size: 13px;
}

#authentication-popup .cl-auth-secure span {
    color: #788693;
    font-size: 12px;
    line-height: 1.5;
}

/* reCAPTCHA / legal notice */
#authentication-popup .grecaptcha-legal-notice,
#authentication-popup .recaptcha-legal {
    margin-top: 12px;
    color: #7a8792;
    font-size: 11px;
}

/* MOBILE */
@media (max-width: 767px) {
    #authentication-popup.cl-auth-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 20px;
        overflow-y: auto;
    }

    #authentication-popup .cl-auth-header {
        padding: 20px 18px 18px;
    }

    #authentication-popup .cl-auth-brand {
        align-items: flex-start;
        gap: 12px;
    }

    #authentication-popup .cl-auth-brandmark {
        display: none;
    }

    #authentication-popup .cl-auth-title {
        font-size: 23px;
    }

    #authentication-popup .cl-auth-subtitle {
        font-size: 13px;
    }

    #authentication-popup .cl-auth-grid {
        grid-template-columns: 1fr;
    }

    #authentication-popup .cl-auth-login,
    #authentication-popup .cl-auth-new {
        padding: 26px 20px 28px;
    }

    #authentication-popup .cl-auth-new {
        border-top: 1px solid #e5eaee;
        border-left: 0;
    }

    #authentication-popup .cl-auth-new::before {
        top: -1px;
        left: 20px;
        width: 48px;
        height: 4px;
        border-radius: 0 0 4px 4px;
    }

    #authentication-popup .cl-auth-section-title {
        font-size: 21px;
    }

    #authentication-popup .cl-auth-error {
        margin: 14px 18px 0;
    }
}

@media (max-width: 420px) {
    #authentication-popup .cl-auth-close {
        width: 38px;
        height: 38px;
    }

    #authentication-popup .cl-auth-title {
        font-size: 21px;
    }

    #authentication-popup .cl-auth-login,
    #authentication-popup .cl-auth-new {
        padding-left: 17px;
        padding-right: 17px;
    }
}

/* Casalinda auth popup - header minimale */
#authentication-popup .cl-auth-shell {
    padding-top: 18px;
}

#authentication-popup .cl-auth-close-floating {
    position: absolute;
    z-index: 20;
    top: 14px;
    right: 16px;
}

#authentication-popup .cl-auth-grid {
    padding-top: 20px;
}

@media (max-width: 767px) {
    #authentication-popup .cl-auth-close-floating {
        top: 10px;
        right: 10px;
    }

    #authentication-popup .cl-auth-grid {
        padding-top: 24px;
    }
}
