/*
 * Login WooCommerce
 * Habillage de la connexion pour les visiteurs non connectés.
 * Author: EcareWeb
 * 2026
 */

body:not(.logged-in) .gs-login-premium-v1 {
    max-width: 1180px;
    margin: 0 auto 70px auto;
    padding: 34px 22px 20px 22px;
}

body:not(.logged-in) .gs-login-premium-v1__card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    min-height: 620px;
    border-radius: 34px;
    overflow: hidden;
    background: #fffaf3;
    border: 1px solid rgba(72, 60, 50, 0.14);
    box-shadow: 0 30px 90px rgba(47, 35, 29, 0.18);
}

/* Partie gauche — ambre premium */

body:not(.logged-in) .gs-login-premium-v1__intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 48px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 16%, rgba(244, 136, 48, 0.34) 0%, rgba(244, 136, 48, 0) 34%),
        radial-gradient(circle at 82% 82%, rgba(216, 154, 91, 0.24) 0%, rgba(216, 154, 91, 0) 36%),
        linear-gradient(135deg, #2f231d 0%, #483c32 46%, #8a4f24 100%);
}

body:not(.logged-in) .gs-login-premium-v1__intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 42%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 18px
        );
    pointer-events: none;
}

body:not(.logged-in) .gs-login-premium-v1__intro::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

body:not(.logged-in) .gs-login-premium-v1__badge,
body:not(.logged-in) .gs-login-premium-v1__title,
body:not(.logged-in) .gs-login-premium-v1__text,
body:not(.logged-in) .gs-login-premium-v1__items {
    position: relative;
    z-index: 1;
}

body:not(.logged-in) .gs-login-premium-v1__badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px 0;
    padding: 11px 18px;
    border-radius: 999px;
    background: #f7f1ea;
    color: #483c32;
    font-family: var(--font-main, Arial, sans-serif);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

body:not(.logged-in) .gs-login-premium-v1__title {
    max-width: 440px;
    margin: 0 0 22px 0 !important;
    color: #ffffff !important;
    font-family: var(--font-bison, 'Bison', Arial, sans-serif) !important;
    font-size: clamp(56px, 5vw, 86px) !important;
    font-weight: 700 !important;
    line-height: 0.9 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
    text-shadow: 0 6px 28px rgba(0, 0, 0, 0.34);
}

body:not(.logged-in) .gs-login-premium-v1__text {
    max-width: 430px;
    margin: 0 0 30px 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-family: var(--font-main, Arial, sans-serif);
    font-size: 18px;
    line-height: 1.65;
}

body:not(.logged-in) .gs-login-premium-v1__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body:not(.logged-in) .gs-login-premium-v1__items span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-family: var(--font-main, Arial, sans-serif);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    backdrop-filter: blur(8px);
}

/* Partie droite — formulaire woo habillé */

body:not(.logged-in) .gs-login-premium-v1__form {
    display: flex;
    align-items: center;
    padding: 58px 58px;
    background:
        radial-gradient(circle at 100% 0%, rgba(244, 136, 48, 0.14) 0%, rgba(244, 136, 48, 0) 34%),
        linear-gradient(180deg, #fffaf3 0%, #f7f1ea 100%);
}

body:not(.logged-in) .gs-login-premium-v1__form > .woocommerce {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
}

body:not(.logged-in) .gs-login-premium-v1__form .u-columns,
body:not(.logged-in) .gs-login-premium-v1__form #customer_login {
    display: block !important;
}

body:not(.logged-in) .gs-login-premium-v1__form .u-column1,
body:not(.logged-in) .gs-login-premium-v1__form .u-column2,
body:not(.logged-in) .gs-login-premium-v1__form .col-1,
body:not(.logged-in) .gs-login-premium-v1__form .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* On masque le bloc inscription Woo si WooCommerce l’affiche */
body:not(.logged-in) .gs-login-premium-v1__form .u-column2,
body:not(.logged-in) .gs-login-premium-v1__form .col-2 {
    display: none !important;
}

body:not(.logged-in) .gs-login-premium-v1__form h2 {
    margin: 0 0 28px 0 !important;
    color: #2f231d !important;
    font-family: var(--font-bison, 'Bison', Arial, sans-serif) !important;
    font-size: 54px !important;
    font-weight: 700 !important;
    line-height: 0.92 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase;
}

body:not(.logged-in) .gs-login-premium-v1__form h2::after {
    content: "";
    display: block;
    width: 74px;
    height: 5px;
    margin-top: 16px;
    border-radius: 999px;
    background: #f48830;
}

body:not(.logged-in) .gs-login-premium-v1__form form.login,
body:not(.logged-in) .gs-login-premium-v1__form form.register {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body:not(.logged-in) .gs-login-premium-v1__form form .form-row {
    margin: 0 0 19px 0 !important;
    padding: 0 !important;
}

body:not(.logged-in) .gs-login-premium-v1__form label {
    display: block;
    margin: 0 0 9px 0;
    color: #3b3129;
    font-family: var(--font-main, Arial, sans-serif);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

body:not(.logged-in) .gs-login-premium-v1__form .required {
    color: #f48830 !important;
}

body:not(.logged-in) .gs-login-premium-v1__form input.input-text,
body:not(.logged-in) .gs-login-premium-v1__form input[type="text"],
body:not(.logged-in) .gs-login-premium-v1__form input[type="email"],
body:not(.logged-in) .gs-login-premium-v1__form input[type="password"] {
    width: 100% !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1.5px solid rgba(72, 60, 50, 0.18) !important;
    border-radius: 25px !important;
    background: #ffffff !important;
    color: #2f231d !important;
    font-family: var(--font-main, Arial, sans-serif) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 58px !important;
    box-shadow: 0 10px 24px rgba(47, 35, 29, 0.06) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body:not(.logged-in) .gs-login-premium-v1__form input.input-text:focus,
body:not(.logged-in) .gs-login-premium-v1__form input[type="text"]:focus,
body:not(.logged-in) .gs-login-premium-v1__form input[type="email"]:focus,
body:not(.logged-in) .gs-login-premium-v1__form input[type="password"]:focus {
    outline: none !important;
    border-color: #f48830 !important;
    box-shadow: 0 0 0 4px rgba(244, 136, 48, 0.14), 0 12px 28px rgba(47, 35, 29, 0.09) !important;
    transform: translateY(-1px);
}

body:not(.logged-in) .gs-login-premium-v1__form .password-input {
    display: block !important;
    position: relative !important;
}

body:not(.logged-in) .gs-login-premium-v1__form .show-password-input {
    top: 50% !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
    color: #483c32 !important;
}

/* Case “se souvenir de moi” */

body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 18px 0 24px 0 !important;
    padding-top: 4px !important;
    color: #5f534a !important;
    font-family: var(--font-main, Arial, sans-serif) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    border-radius: 5px !important;
    accent-color: #f48830;
    transform: translateY(1px);
}

/* Bouton login */

body:not(.logged-in) .gs-login-premium-v1__form button.button,
body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-button,
body:not(.logged-in) .gs-login-premium-v1__form input.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 60px !important;
    padding: 16px 30px !important;
    border: none !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background-color: #3f3128 !important;
    background-image: linear-gradient(
        90deg,
        #3f3128 0%,
        #4a392e 12%,
        #5a4639 24%,
        #8a4f24 38%,
        #d89a5b 50%,
        #8a4f24 62%,
        #5a4639 76%,
        #4a392e 88%,
        #3f3128 100%
    ) !important;
    background-size: 400% 100% !important;
    background-repeat: repeat !important;
    box-shadow: 0 16px 34px rgba(47, 35, 29, 0.24) !important;
    font-family: var(--font-main, Arial, sans-serif) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    animation: gsSlowSweepLoop 16s linear infinite;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

body:not(.logged-in) .gs-login-premium-v1__form button.button:hover,
body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-button:hover,
body:not(.logged-in) .gs-login-premium-v1__form input.button:hover {
    color: #ffffff !important;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(47, 35, 29, 0.30) !important;
}

body:not(.logged-in) .gs-login-premium-v1__form .lost_password {
    margin: 18px 0 0 0 !important;
    text-align: center;
}

body:not(.logged-in) .gs-login-premium-v1__form .lost_password a,
body:not(.logged-in) .gs-login-premium-v1__form form a {
    color: #8a4f24 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(244, 136, 48, 0.38);
    transition: color 0.18s ease, border-color 0.18s ease;
}

body:not(.logged-in) .gs-login-premium-v1__form .lost_password a:hover,
body:not(.logged-in) .gs-login-premium-v1__form form a:hover {
    color: #f48830 !important;
    border-color: #f48830;
}

/* Messages WooCommerce */

body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-message,
body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-info,
body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-error {
    border-radius: 18px !important;
    border-top: 0 !important;
    padding: 18px 22px 18px 56px !important;
    background: #fffaf3 !important;
    color: #3b3129 !important;
    box-shadow: 0 14px 34px rgba(47, 35, 29, 0.08) !important;
    font-weight: 800;
}

body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-message::before,
body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-info::before,
body:not(.logged-in) .gs-login-premium-v1__form .woocommerce-error::before {
    top: 18px !important;
    left: 22px !important;
    color: #f48830 !important;
}

/* Responsive */

@media (max-width: 991px) {
    body:not(.logged-in) .gs-login-premium-v1__card {
        grid-template-columns: 1fr;
    }

    body:not(.logged-in) .gs-login-premium-v1__intro {
        padding: 46px 34px;
    }

    body:not(.logged-in) .gs-login-premium-v1__form {
        padding: 42px 34px;
    }
}

@media (max-width: 767px) {
    body:not(.logged-in) .gs-login-premium-v1 {
        padding: 22px 14px 20px 14px;
        margin-bottom: 46px;
    }

    body:not(.logged-in) .gs-login-premium-v1__card {
        border-radius: 24px;
        min-height: 0;
    }

    body:not(.logged-in) .gs-login-premium-v1__intro {
        padding: 38px 24px;
    }

    body:not(.logged-in) .gs-login-premium-v1__form {
        padding: 34px 22px;
    }

    body:not(.logged-in) .gs-login-premium-v1__title {
        font-size: 48px !important;
    }

    body:not(.logged-in) .gs-login-premium-v1__text {
        font-size: 16px;
    }

    body:not(.logged-in) .gs-login-premium-v1__items {
        flex-direction: column;
    }

    body:not(.logged-in) .gs-login-premium-v1__items span {
        width: 100%;
    }

    body:not(.logged-in) .gs-login-premium-v1__form h2 {
        font-size: 42px !important;
    }
}
