/********************************/
/* ACCOUNT PAGES STYLING
/********************************/

/* Reset des largeurs et des débordements */
html, body {
    max-width: 100%;
    /*overflow-x: hidden;*/
}

.woocommerce {
    max-width: 100vw;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

#customer_login {
    display: flex;
    /*flex-wrap: wrap;*/
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#customer_login h2 {
    color: #FFA500;
    font-size: 32px;
    margin-bottom: 15px;
    font-family: "Impact", "Arial Black", sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#customer_login p {
    color: #242424;
}

.u-column1,
.u-column2 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #4169E1 !important;
    padding: 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Forcer tous les éléments internes à respecter la largeur */
.woocommerce form *,
.woocommerce-form-login *,
.woocommerce-form-register * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Message de bienvenue */
.denis-welcome-message {
    background: linear-gradient(135deg, #4169E1 0%, #0a1c3e 100%);
    color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Formulaires */
.woocommerce-form-login,
.woocommerce-form-register {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.woocommerce form .form-row {
    display: block;
    margin-bottom: 15px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce form .form-row input.input-text {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 650px) {
    .woocommerce {
        padding: 0 10px;
        overflow-x: hidden;
    }

    #customer_login {
        flex-direction: column;
        gap: 20px;
    }

    .u-column1,
    .u-column2 {
        flex: 1 1 100%;
        width: 100%;
    }

    /* Ajustement des champs pour petits écrans */
    .woocommerce form .form-row input.input-text,
    .woocommerce form .form-row .password-input input.input-text,
    .woocommerce-button {
        min-width: 0;
        width: 100%;
    }

    /* Ajustement du conteneur de formulaire */
    .woocommerce-form-login,
    .woocommerce-form-register {
        min-width: 0;
        width: 100%;
    }

    /* Ajustement des lignes de formulaire */
    .form-row {
        min-width: 0;
        width: 100%;
    }

    /* Forcer la largeur du conteneur principal */
    .woocommerce {
        min-width: 0;
        width: 100%;
        padding: 0 10px;
    }
}

/* Assurer que tous les conteneurs peuvent se rétrécir */
.woocommerce,
.woocommerce-form-login,
.woocommerce-form-register,
.form-row,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row .password-input input.input-text,
.woocommerce-button {
    min-width: 0;
}

.denis-welcome-message h2 {
    color: #FFA500;
    font-size: 32px;
    margin-bottom: 15px;
    font-family: "Impact", "Arial Black", sans-serif;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.denis-welcome-message p {
    font-size: 18px;
    line-height: 1.6;
}

#customer_login label {
    color: #0a1c3e;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.woocommerce form .form-row input.input-text {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: #4169E1;
    box-shadow: 0 0 5px rgba(65, 105, 225, 0.2);
}

.woocommerce-form-login button,
.woocommerce-form-register button {
    background: linear-gradient(135deg, #FFA500 0%, #FF4500 100%) !important;
    color: #FFFFFF !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    padding: 8px 21px    !important;
    margin: -22px -13px 0px 0px !important;
    width: unset !important;
    transform: none !important;
}

.woocommerce-form-login button:hover,
.woocommerce-form-register button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3) !important;
}

.woocommerce-LostPassword a {
    color: #4169E1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.woocommerce-LostPassword a:hover {
    color: #FFA500;
}

.woocommerce-privacy-policy-text {
    font-size: 14px;
    color: #666;
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 5px;
}

.woocommerce-privacy-policy-text a {
    color: #4169E1;
    text-decoration: none;
    font-weight: bold;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.woocommerce-form__input-checkbox {
    margin-right: 8px;
}

/* Show password button styling */
.show-password-input {
    color: #4169E1;
}

.show-password-input:hover {
    color: #FFA500;
}

/* Required field asterisk */
.required {
    color: #FF4500;
}

/* Ajustement du conteneur du mot de passe */
.password-input {
    width: 100%;
    display: block;
    position: relative;
}

/* Ajustement de l'icône show/hide password */
.show-password-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Ajustement des inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row .password-input input.input-text {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 35px 12px 15px; /* Augmentation du padding droit pour l'icône */
}

/* Ajustement de la ligne du bouton et remember me */
.form-row {
    display: flex;
    /*flex-wrap: wrap;*/
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Style du bouton */
.woocommerce-button {
    flex: 1;
    min-width: 200px;
}

/* Ajustement du label remember me */
.woocommerce-form__label-for-checkbox {
    flex: 0 0 auto;
    margin: 0;
}

/* Styles pour la page de mot de passe perdu */
.woocommerce-ResetPassword {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #4169E1 !important;
    padding: 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-ResetPassword .woocommerce-form-row {
    width: 100% !important;
    float: none !important;
}

.woocommerce-ResetPassword button {
    background: linear-gradient(135deg, #FFA500 0%, #FF4500 100%) !important;
    color: #FFFFFF !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.woocommerce-ResetPassword button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3) !important;
}

/* Message de succès/erreur */
.woocommerce-message,
.woocommerce-error {
    background: #4169E1;
    color: #FFFFFF;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    list-style: none;
}

.woocommerce-error {
    background: #FF4500;
}

/* Styles pour la page de mot de passe perdu */
.lost-password-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.lost-password-page .woocommerce-form-row {
    margin-bottom: 20px;
}

.lost-password-page .woocommerce-form-row label {
    display: block;
    margin-bottom: 10px;
    color: #4169E1;
    font-weight: bold;
}

.lost-password-page .woocommerce-form-row input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.lost-password-page .woocommerce-form-row input:focus {
    border-color: #4169E1;
    box-shadow: 0 0 5px rgba(65, 105, 225, 0.2);
}

.lost-password-page button.woocommerce-Button {
    background: linear-gradient(135deg, #FFA500 0%, #FF4500 100%) !important;
    color: #FFFFFF !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
    margin-top: 20px !important;
    border: none !important;
    cursor: pointer !important;
}

.lost-password-page button.woocommerce-Button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3) !important;
}

/* Message de confirmation */
.woocommerce-message {
    background: #4169E1;
    color: #FFFFFF;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Message d'erreur */
.woocommerce-error {
    background: #FF4500;
    color: #FFFFFF;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    list-style: none;
}

/* Styles pour la page Lost Password */
.post-2981 {  /* Utilisez l'ID de votre article */
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-2981 .entry-title {
    display: none; /* Cache le titre par défaut */
}

.post-2981 .entry-content {
    padding: 0;
    margin: 0;
}

/* Ajustement du conteneur principal */
.lost-password-page {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #4169E1;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

/* Ajustement du message de bienvenue */
.lost-password-page .denis-welcome-message {
    margin: -30px -30px 30px -30px;
    border-radius: 7px 7px 0 0;
}

/* Ajustement du formulaire */
.lost-password-page .woocommerce-ResetPassword {
    background: transparent;
    border: none !important;
    padding: 0 !important;
    box-shadow: none;
}

/* Container pour les pages de mot de passe */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 40px 20px;*/
}

/* Message de confirmation en dehors de la boîte */
.lost-password-page + p {
    text-align: center;
    color: #4169E1;
    margin-top: 20px;
    font-size: 16px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

/* Ajustement des marges pour le formulaire de réinitialisation */
.woocommerce-ResetPassword .form-row-first,
.woocommerce-ResetPassword .form-row-last {
    width: 100%;
    float: none;
    margin-bottom: 20px;
}

/* Styles spécifiques pour la page account */
body.woocommerce-account .woocommerce {
    max-width: 100vw;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

body.woocommerce-account #customer_login {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.woocommerce-account .u-column1,
body.woocommerce-account .u-column2 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #4169E1 !important;
    padding: 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Styles spécifiques pour la page lost password */
body.page-template-lost-password-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

body.page-template-lost-password-wrapper .woocommerce {
    max-width: 500px;
    margin: 0 auto;
}

.lost-password-page .woocommerce-ResetPassword.lost_reset_password label,
.lost-password-page .woocommerce-ResetPassword.lost_reset_password small,
.woocommerce-ResetPassword.lost_reset_password p,
.woocommerce-form-row.woocommerce-form-row--first.form-row.form-row-first label,
.woocommerce-form-row.woocommerce-form-row--last.form-row.form-row-last label {
        color: #000;
}

/* Responsive pour la page account */
@media (max-width: 650px) {
    body.woocommerce-account #customer_login {
        flex-direction: column;
        gap: 20px;
    }

    body.woocommerce-account .u-column1,
    body.woocommerce-account .u-column2 {
        flex: 1 1 100%;
        width: 100%;
    }
}
