/* CSS pour la page de connexion */

/* Favicons pour différentes tailles et plateformes */
.favicon {
    display: none;
}

/* Apple Touch Icon */
.apple-touch-icon {
    border-radius: 0;
}

/* Favicon standard */
.favicon {
    border-radius: 0;
}

/* Pour les navigateurs modernes */
@media (prefers-color-scheme: dark) {
    /* Si besoin d'un favicon pour thème sombre */
}

/* Animation subtile pour le favicon si nécessaire */
@keyframes favicon-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

:root {
    --dark: #2B2D42;
    --gris1: #d0d5dd;
    --bleu: #0D9EEC;
    --gris2: #9aa0ac;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #f5f6fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(13, 158, 236, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(43, 45, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(13, 158, 236, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-20px, -20px) rotate(1deg);
    }

    66% {
        transform: translate(20px, -10px) rotate(-1deg);
    }
}

.container {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 20px 40px;
    max-width: 1100px;
    width: 100%;
    animation: containerEntrance 0.8s ease-out;
}

@keyframes containerEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Left card ── */
.left-card {
    width: 48%;
    min-width: 320px;
    height: 550px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: url('../img/gradient.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(43, 45, 66, 0.15);
    animation: leftCardEntrance 0.8s ease-out 0.2s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(43, 45, 66, 0.25);
}

@keyframes leftCardEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotateY(-15deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.left-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px 36px;
    background: linear-gradient(to top, rgba(6, 20, 30, 0.85) 0%, transparent 100%);
}

.left-card-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 12px;
    animation: textSlideUp 0.8s ease-out 0.6s both;
    transition: transform 0.3s ease;
}

.left-card-content h2:hover {
    transform: translateX(5px);
}

.left-card-content p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    animation: textSlideUp 0.8s ease-out 0.8s both;
    transition: color 0.3s ease;
}

.left-card-content p:hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Right form ── */
.right-form {
    flex: 1;
    max-width: 48%;
    animation: rightFormEntrance 0.8s ease-out 0.4s both;
}

@keyframes rightFormEntrance {
    0% {
        opacity: 0;
        transform: translateX(50px) rotateY(15deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 48px;
    animation: logoBounce 1s ease-out 1s both;
}

.logo img {
    width: 32%;
    max-width: 120px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 10px 20px rgba(13, 158, 236, 0.3));
}

@keyframes logoBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.form-group {
    margin-bottom: 24px;
    animation: formGroupSlide 0.6s ease-out both;
}

.form-group:nth-child(1) {
    animation-delay: 1.2s;
}

.form-group:nth-child(2) {
    animation-delay: 1.4s;
}

.form-group:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes formGroupSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 8px 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.form-group label:hover {
    color: var(--bleu);
    transform: translateX(3px);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--gris1);
    border-radius: 10px;
    padding: 0 50px 0 18px;
    font-size: 15px;
    color: var(--dark);
    background: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-wrapper input:focus {
    border-color: var(--bleu);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 158, 236, 0.2);
}

.input-wrapper input:hover {
    border-color: var(--bleu);
    box-shadow: 0 3px 10px rgba(13, 158, 236, 0.1);
}

.input-wrapper input.is-invalid {
    border-color: #f44336;
}

.input-wrapper .icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gris2);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-wrapper .icon:hover {
    color: var(--bleu);
    transform: translateY(-50%) scale(1.2);
}

.input-wrapper .icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.input-wrapper .icon:hover svg {
    transform: rotate(10deg);
}

/* Remember me */
.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    animation: rememberRowSlide 0.6s ease-out 1.8s both;
}

@keyframes rememberRowSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.remember-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--bleu);
    cursor: pointer;
    color: #fff;
    border: 1px solid var(--gris2);
    padding: 2px;
    transition: transform 0.2s ease;
}

.remember-row input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.remember-row label {
    font-size: 14px;
    font-weight: 400;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.remember-row label:hover {
    color: var(--bleu);
}

/* Submit button */
.btn-submit {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, var(--dark) 0%, #243050 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(43, 45, 66, 0.2);
    animation: buttonEntrance 0.8s ease-out 2s both;
    position: relative;
    overflow: hidden;
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #243050 0%, var(--dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 45, 66, 0.3);
}

.btn-submit:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(43, 45, 66, 0.2);
}

/* Alert messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    animation: alertSlide 0.5s ease-out both;
}

@keyframes alertSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-error {
    background: linear-gradient(135deg, #ff5722, #f44336);
    color: white;
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
    animation: alertShake 0.5s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

@keyframes alertShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 40px;
        padding: 20px;
    }

    .left-card,
    .right-form {
        width: 100%;
        max-width: 100%;
    }

    .left-card {
        height: 300px;
    }
}