﻿body {
    max-width: 100% !important;
}

#contenu {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 16px;
}

#accueil-login.auth-shell {
    width: min(560px, 100%);
    margin: 0 auto;
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(to left, var(--theme-main), var(--theme-light));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    color: #fff;
}

#accueil-login h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.4;
}

.form_group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #f3f7ff;
}

input[type="text"],
input[type="password"],
input[type="email"],
select.slc {
    width: 100%;
    border: 1px solid #c7d8eb;
    border-radius: 6px;
    padding: 11px 12px;
    font-size: 15px;
    color: #102642;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select.slc {
    appearance: auto;
    display: block;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select.slc:focus {
    border-color: #2e9f45;
    box-shadow: 0 0 0 2px rgba(46, 159, 69, 0.15);
    outline: none;
}

input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-return-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-return-home:hover {
    transform: translateY(-1px);
}

.btn-return-home {
    background: #ffffff;
    color: #113d73;
}

.btn-return-home:hover {
    background: #eef5ff;
}

.btn-return-home-light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-return-home-light:hover {
    background: rgba(255, 255, 255, 0.25);
}

.auth-actions-secondary {
    text-align: center;
}

.auth-link {
    color: #e7f1ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 14px;
    font-weight: 600;
}

.auth-link:hover {
    color: #ffffff;
}

input[type="submit"]:hover {
    transform: translateY(-1px);
}

input[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.btn-submit,
.btn-register {
    background: #33ad49;
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 99, 41, 0.35);
}

.btn-submit:hover,
.btn-register:hover {
    background: #26903a;
}

.btn-return {
    background: #ffffff;
    color: #113d73;
}

.btn-return:hover {
    background: #eef5ff;
}

.feedback {
    margin-top: 6px;
    min-height: 16px;
    font-size: 12px;
    color: #ffd1d1;
}

.form_hint {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.input-error {
    border: 2px solid #d32f2f !important;
    background-color: #ffe2e2 !important;
}

.auth-notice {
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
}

.auth-notice-error {
    background: rgba(211, 47, 47, 0.2);
    border: 1px solid rgba(255, 207, 207, 0.45);
    color: #fff;
}

.auth-notice-success {
    background: rgba(39, 153, 65, 0.2);
    border: 1px solid rgba(191, 238, 199, 0.45);
    color: #fff;
}

@media (max-width: 1000px) {
    #contenu {
        padding: 10px;
    }

    #accueil-login.auth-shell {
        padding: 12px;
    }

    #accueil-login h2 {
        font-size: 25px;
    }
}


#bottom {
    width: auto;
    margin: 8px auto 0;
    text-align: center;
}
