/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1a1a1a, #0c0c0c 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f5;
}

/* =========================
   LOGIN CARD
========================= */
.login-container {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #141414, #0f0f0f);
    border-radius: 14px;
    padding: 45px 40px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    animation: slideFade 0.9s ease;
}

/* Ligne orange décorative */
.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff7a00, #ff9f1c);
    border-radius: 14px 14px 0 0;
}

/* =========================
   TITLE
========================= */
.login-container h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================
   ERROR MESSAGE
========================= */
.login-container p {
    background: rgba(255, 122, 0, 0.12);
    border-left: 4px solid #ff7a00;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 6px;
    color: #ffb266;
}

/* =========================
   FORM
========================= */
.login-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================
   INPUTS
========================= */
.login-container input {
    width: 100%;
    padding: 14px 16px;
    background: #0b0b0b;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 15px;
    transition: all 0.25s ease;
}

.login-container input::placeholder {
    color: #8a8a8a;
}

.login-container input:focus {
    outline: none;
    border-color: #ff7a00;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.25);
    background: #0f0f0f;
}

/* =========================
   BUTTON
========================= */
.login-container button {
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #ff7a00, #ff9f1c);
    border: none;
    border-radius: 8px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 122, 0, 0.45);
}

.login-container button:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.35);
}

/* =========================
   ANIMATION
========================= */
@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 480px) {
    .login-container {
        padding: 35px 25px;
    }

    .login-container h2 {
        font-size: 22px;
    }
}
/* =========================
   BACKGROUND ANIMATION
========================= */
.background-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #0b0b0b;
}

/* Formes animées */
.background-animation span {
    position: absolute;
    display: block;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,122,0,0.35), transparent 70%);
    filter: blur(60px);
    animation: float 18s linear infinite;
}

/* Variantes */
.background-animation span:nth-child(1) {
    top: -100px;
    left: -100px;
    animation-duration: 22s;
}

.background-animation span:nth-child(2) {
    bottom: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    animation-duration: 26s;
}

.background-animation span:nth-child(3) {
    top: 50%;
    left: 60%;
    width: 350px;
    height: 350px;
    animation-duration: 20s;
}

/* Animation lente */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-80px) translateX(60px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}
