/* ============================================================
   AUTHENTICATION
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f4f6f9;
}
.auth-container {
    width: 100%;
    max-width: 520px;
}
.auth-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.10);
}
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 420px;
    height: 210px;
    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: transparent;
    border-radius: 0;
}

.auth-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.auth-logo-placeholder {
    font-size: 30px;
}
.auth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #212529;
}
.auth-subtitle {
    margin: 8px 0 0;
    font-size: 15px;
    color: #6c757d;
}
.auth-alert {
    margin-bottom: 22px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}
.auth-alert-danger {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}
.auth-info {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}
.auth-form {
    width: 100%;
}
.auth-form-group {
    margin-bottom: 20px;
}
.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
}
.auth-form-group input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #ffffff;
    color: #212529;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.auth-form-group input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}
.auth-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.auth-submit:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}
.auth-footer a {
    color: #0d6efd;
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 576px) {
    .auth-page {
        padding: 20px 14px;
    }
    .auth-card {
        padding: 26px 20px;
        border-radius: 12px;
    }
    .auth-logo {
        width: 100%;
        max-width: 100%;
        height: 150px;
        margin: 0 auto 22px;
    }
    .auth-logo img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    .auth-title {
        font-size: 24px;
    }
}

/* =====================================================
ALERTES AUTHENTIFICATION
===================================================== */
.auth-alert-floating {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-bottom: 20px;
	padding: 13px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	animation:
		authAlertShow 0.35s ease forwards;
}

/* =====================================================
ICÔNE
===================================================== */
.auth-alert-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 13px;
}

/* =====================================================
CONTENU
===================================================== */
.auth-alert-content {
	flex: 1;
}

/* =====================================================
ERREUR
===================================================== */
.auth-alert-danger {
	color: #ff4d5a;
	font-weight: 600;
	background: rgba(220, 53, 69, 0.12);
	border: 1px solid rgba(220, 53, 69, 0.35);
}

.auth-alert-danger .auth-alert-icon {
	color: #ffffff;
	background: #dc3545;
}

/* =====================================================
SUCCÈS
===================================================== */
.auth-alert-success {
    color: #3ddc78;
    font-weight: 600;
    background: rgba(25, 135, 84, 0.12);
    border: 1px solid rgba(25, 135, 84, 0.30);
}

.auth-alert-success .auth-alert-icon {
	color: #ffffff;
	background: #198754;
}

/* =====================================================
APPARITION
===================================================== */

@keyframes authAlertShow {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
