/* =========================
   RESET
========================= */

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

body {
    overflow: hidden;
    min-height: 100vh;

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

    font-family: Inter, "Segoe UI", sans-serif;

    background: #020617;
}

/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(59, 130, 246, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(168, 85, 247, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(34, 197, 94, 0.12),
            transparent 40%
        ),
        #020617;
}

.background__scan {
    position: absolute;
    inset: -20%;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 100%
        );

    animation: background-scan 12s linear infinite;
}

@keyframes background-scan {
    from {
        transform: translateX(-30%);
    }

    to {
        transform: translateX(30%);
    }
}

/* =========================
   PARTICLES
========================= */

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.particles__item {
    position: absolute;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    animation-name: particle-float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes particle-float {

    from {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    to {
        transform: translateY(-120px);
        opacity: 0;
    }
}

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

.login {
    position: relative;
    z-index: 1;

    width: 100%;

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

    padding: 20px;
}

.login__card {
    width: 420px;
    max-width: 100%;

    padding: 40px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;

    background: rgba(15, 23, 42, 0.6);

    backdrop-filter: blur(18px);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    animation: login-appear 0.8s ease;
}

@keyframes login-appear {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login__title {
    margin-bottom: 10px;

    color: #ffffff;

    text-align: center;

    font-size: 32px;
    font-weight: 700;
}

.login__subtitle {
    margin-bottom: 30px;

    color: #94a3b8;

    text-align: center;
}

.login__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login__field {
    width: 100%;
}

.login__input {
    width: 100%;

    padding: 14px 16px;

    color: #ffffff;
    font-size: 15px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.05);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.login__input:focus {
    outline: none;

    border-color: #3b82f6;

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login__button {
    padding: 14px;

    color: #ffffff;
    font-weight: 600;

    cursor: pointer;

    border: none;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.login__button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(59, 130, 246, 0.35);
}

.login__footer {
    margin-top: 20px;

    color: #64748b;

    text-align: center;
    font-size: 13px;
}