/* ===============================
   GLOBAL RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0b1220;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

/* ===============================
   ANIMATED BACKGROUND LAYERS
================================= */

.background-layer-1,
.background-layer-2,
.background-layer-3 {
    position: fixed;
    width: 200%;
    height: 200%;
    pointer-events: none;
}

.background-layer-1 {
    background: radial-gradient(circle at 20% 30%, #1e3a8a, transparent 40%);
    animation: moveLayer1 20s linear infinite;
}

.background-layer-2 {
    background: radial-gradient(circle at 70% 60%, #0ea5e9, transparent 45%);
    animation: moveLayer2 30s linear infinite;
}

.background-layer-3 {
    background: radial-gradient(circle at 40% 80%, #1d4ed8, transparent 50%);
    animation: moveLayer3 40s linear infinite;
}

@keyframes moveLayer1 {
    0% { transform: translate(0,0); }
    50% { transform: translate(-60px, -40px); }
    100% { transform: translate(0,0); }
}

@keyframes moveLayer2 {
    0% { transform: translate(0,0); }
    50% { transform: translate(80px, 60px); }
    100% { transform: translate(0,0); }
}

@keyframes moveLayer3 {
    0% { transform: translate(0,0); }
    50% { transform: translate(-40px, 70px); }
    100% { transform: translate(0,0); }
}

/* ===============================
   LOGIN CARD
================================= */

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    padding: 70px;
    width: 450px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow:
        0 0 40px rgba(14, 165, 233, 0.4),
        inset 0 0 20px rgba(14, 165, 233, 0.2);
    transition: 0.4s ease;
}

.login-container:hover {
    box-shadow:
        0 0 60px rgba(14, 165, 233, 0.7),
        inset 0 0 25px rgba(14, 165, 233, 0.3);
}

/* ===============================
   TYPOGRAPHY
================================= */

h1 {
    font-size: 2.8rem;
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===============================
   INPUT STYLING
================================= */

input {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    background: #1e293b;
    border: 2px solid #0ea5e9;
    color: white;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

input::placeholder {
    color: #64748b;
    letter-spacing: 2px;
}

input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 20px #38bdf8;
}

/* ===============================
   BUTTON
================================= */

button {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.8);
}

/* ===============================
   MESSAGE
================================= */

#message {
    margin-top: 25px;
    height: 30px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===============================
   FADE IN ANIMATION
================================= */

.login-container {
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}