/* Login */
body.login {
    background: #066231;
}

body.login main {
    background: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

#portail-container {
    width: 100%; 
    margin: 50px auto;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#portail-container h1 {
    font-family: 'Gotham';
    font-weight: 700;
    font-size: 35px;
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 2px;
}
#portail-container h2 {  
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #202020;
    line-height: 35px;
    letter-spacing: 0.48px;
    margin-bottom: 0;
}

#portail-choice {
    gap: 55px;
    flex-wrap: wrap;
    margin-top: 85px;
}
#portail-choice .portail-choice-card {
    border-radius: 0;
    width: calc(50% - 28px);
    background: #066231;
    padding: 40px 15px;
    box-sizing: border-box;
    max-width: 570px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#portail-choice .portail-choice-card > div {
    flex: 1;
}

#portail-choice .portail-choice-card * {
    color: #fff;
}

#portail-choice .portail-choice-card h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    color: #FFFFFF;
    line-height: 35px;
    letter-spacing: 0.48px;
    margin-bottom: 15px;
}
#portail-choice .portail-choice-card p {  
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #ffffff;
    line-height: 25px;
    letter-spacing: 0.28px;
    text-align: center;
}

#portail-choice .portail-choice-card .btn.btn-primary {  
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #202020;
    line-height: 14px;
    display: inline-block;
    text-transform: uppercase;
    background: #ffffff !important;
    padding: 17px 30px;
    box-shadow: 0px 0px 84px 0px rgb(0 0 0 / 5%) !important;
    margin-bottom: 20px;
    letter-spacing: 0.56px;
    margin-top: 27px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#portail-choice .portail-choice-card .btn.btn-primary span {
    color: #202020;
}
#portail-choice .portail-choice-card .btn.btn-primary i {
    margin-left: 30px;
    color: #056130;
    font-size: 24px;
}
#portail-choice .portail-choice-card .btn-primary:hover, 
#portail-choice .portail-choice-card .btn-primary:active, 
#portail-choice .portail-choice-card .btn-primary.active, 
#portail-choice .portail-choice-card .btn-primary:focus, 
#portail-choice .portail-choice-card .btn-primary:focus-visible {
    background: #13a538 !important;
}
    
#login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

#login-container .card {
    border-radius: 0;
    width: 100%;
    background: #fcf4e7;
}

#login-container .card-header {
    padding-bottom: 0;
    background: none;
    border: none;
}

#login-container .card-header h1 {
    border:none;
    margin: 0;
    font-weight: 700;
    color: #000;
    padding-bottom: 0.75rem;
    font-size: 2.0rem;
    font-family: 'Gotham';
}


#login-container .brand-logo {
    width: 64px;
    height: 64px;
    background: #066231;
    color: white;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 10px 15px -3px rgba(6, 98, 49, 0.4);
}

#login-container .card-body label {
    font-weight: 500;
    color: #575757;
    font-size: 15px;
    font-family: "Circular Std", sans-serif;
    margin-bottom: 10px;
    display: block;
}
#login-container .card-body input[type="checkbox"] {
    margin-top: 1px;
}
/*
#login-container .btn {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}*/

#login-container #login-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
    
#login-container .card-body a,
#login-container .card-body a:visited {
    display: block;
    font-size: 0.9em;
}

#login-container .card-body a,
#login-container .card-body a:visited,
a.lien-login,
a.lien-login:visited {
    text-decoration: none;
    color: #575757;
    text-align: center;
    font-weight: 700;
}




/* ===== CONTAINER ===== */
#register-container,
#password-reset {
    max-width: 420px;
    margin: 60px auto;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

#password-logo {
    margin: 0 0 10px; 
    text-align: center;
}
#password-logo a,
#password-logo a:visited {
    justify-content: center;
}

/* ===== TITRE ===== */
#register-container h1,
#password-reset h1 {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
}

/* ===== FORM GROUP ===== */
#register-container form > div,
#password-reset form > div {
    margin-bottom: 15px;
}

/* ===== LABEL ===== */
#register-container label,
#password-reset label {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

/* ===== INPUT ===== */
#register-container input[type="text"],
#register-container input[type="email"],
#register-container input[type="password"],
#password-reset input[type="email"] {
    border-radius: 0;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    font-size: 15px;
    transition: all 0.2s ease;
}

#register-container input[type="text"].is-invalid,
#register-container input[type="email"].is-invalid,
#register-container input[type="password"].is-invalid,
#password-reset input[type="email"].is-invalid {
    border-color: var(--bs-form-invalid-border-color);
}

/* Focus */
#register-container input[type="text"]:focus,
#register-container input[type="email"]:focus,
#register-container input[type="password"]:focus,
#password-reset input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(64,113,32,0.1);
    outline: none;
}

#password-reset input[type="email"] {
    padding-left: 36px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2-.5a.5.5 0 0 0-.5.5v.217l6.5 3.25 6.5-3.25V4a.5.5 0 0 0-.5-.5H2zm13 2.383l-5.857 2.929a1 1 0 0 1-.886 0L2.4 5.883V12a.5.5 0 0 0 .5.5h10.2a.5.5 0 0 0 .5-.5V5.883z'/%3E%3C/svg%3E") no-repeat 10px center;
    background-size: 16px;
}

/* ===== TEXTE INFO ===== */
#register-container small,
#password-reset small {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    display: block;
}

/* ===== BOUTON ===== */

/* Hover bouton */
#register-container .btn-primary:hover,
#password-reset .btn-primary:hover {
    background: var(--primary-hover);
}


@media (max-width: 1100px) {
    #portail-choice {
        gap: 25px;
    }
    #portail-choice .portail-choice-card {
        width: calc(50% - 13px);
    }

}

@media (max-width: 780px) {
    #portail-choice {
        gap: 15px 0;
    }
    #portail-choice .portail-choice-card {
        width: 100%;
            margin: 0 auto;
    }
}
@media (max-width: 530px) {
    #portail-container h1 {
        font-size: 27px;
    }
    #portail-container h2 {
        font-size: 21px;
    }

    #portail-choice {
        margin-top: 45px;
    }
    #portail-choice .portail-choice-card .btn.btn-primary {
        padding: 15px 25px;    
    }
    #portail-choice .portail-choice-card .btn.btn-primary i {
        margin-left: 20px;
    }   

    #login-container {
        width: 90%;
    }
    #login-container .card {
        padding: 1.5rem !important;
    }
    #login-container .card-body {
        padding: 0 !important ;
    }
}

@media (max-width: 400px) {
    #login-container #login-links {
        flex-direction: column;
    }
    #login-container #login-links span {
        font-size: 0;
        width: 10px;
        height: 2px;
        background: #575757;
    }

}

@media (max-width: 340px) {
    #login-container .brand-logo {
        width: 54px;
        height: 54px;
    }
    #login-container .card-header h1 {
        font-size: 23px;
    }
}
@media (max-height: 650px) {
    body.login,
    body.login main {
        height: 100dvh !important;   
        overflow: hidden;
    }
    #login-container  {
        height: 100dvh !important;   
        padding: 25px 0;
        box-sizing: border-box;
    }
    #login-container .card {
        height: 100%;
        overflow-y: auto;
    }
}
