/* Nouvel Auth CSS (Séparé) */
:root {
    --auth-bg-color: #000;
    --auth-card-bg: #ffffff;
    --auth-text-color: #000000;
    --auth-btn-bg: #000000;
    --auth-btn-text: #ffffff;
    --font-family: 'Open Sans', sans-serif;
}

body.auth-page {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--auth-bg-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/backgrounds/walpapper2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--auth-text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-header {
    text-align: center;
    padding: 20px 0;
}

.auth-header img {
    height: 50px;
    object-fit: contain;
}

.auth-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-title-top {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.auth-card {
    background: var(--auth-card-bg);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.auth-card p.mandatory-note {
    font-size: 12px;
    color: #333;
    margin-bottom: 25px;
    font-weight: bold;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    background: transparent;
    box-sizing: border-box;
}

.auth-input:focus {
    border-bottom-color: #000;
}

.input-icon {
    position: absolute;
    right: 0;
    top: 35px;
    cursor: pointer;
}

.password-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.password-criteria span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.password-criteria span.valid {
    color: green;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
}

.checkbox-group input {
    margin-top: 3px;
}

.disclaimer-text {
    font-size: 10px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 30px;
    text-align: justify;
}

.disclaimer-text a {
    color: #666;
    text-decoration: underline;
}

.auth-btn {
    background-color: var(--auth-btn-bg);
    color: var(--auth-btn-text);
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.auth-btn:hover {
    background-color: #333;
}

.auth-btn-outline {
    background-color: transparent;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.auth-btn-outline:hover {
    background-color: #f5f5f5;
}

.auth-btn-outline img {
    height: 18px;
}

.auth-links {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.auth-links a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

.auth-links.muted {
    color: #666;
}

.auth-links.muted a {
    color: #000;
    text-decoration: none;
}

hr.divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

.auth-footer {
    padding: 20px 40px;
    color: #aaa;
    font-size: 12px;
}

.auth-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-footer ul li a {
    color: #aaa;
    text-decoration: none;
}

.auth-footer ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 20px;
    }
}

/* CUSTOM ALERT OVERLAY */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background: #fff;
    color: #000;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-overlay.show .custom-alert-box {
    transform: translateY(0) scale(1);
}

.custom-alert-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.custom-alert-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.custom-alert-box p {
    font-size: 14px;
    color: #555;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.custom-alert-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

.custom-alert-btn:hover {
    background: #333;
}

.custom-alert-btn:active {
    transform: scale(0.95);
}
