
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #03040a;
    color: #e5e7eb;
}

.login-page {
    min-height: 93vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    position: relative;
    overflow: hidden;
    background-color: #02030a;
    background-image:
        radial-gradient(circle at 10% -10%, #374151 0, transparent 50%),
        radial-gradient(circle at 90% 120%, #0b1120 0, transparent 60%),
        radial-gradient(circle at center, #020617 0, #02030a 55%, #000000 100%);
}

.login-page::before {
    content: "";
    position: absolute;
    inset: -30%;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.09) 0, transparent 50%),
        radial-gradient(circle at 20% 100%, rgba(56, 189, 248, 0.08) 0, transparent 55%),
        radial-gradient(circle at 80% 110%, rgba(168, 85, 247, 0.08) 0, transparent 55%);
    opacity: 0.75;
    pointer-events: none;
}

.login-page::after {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, transparent 0, transparent 45%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background:
        radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.2) 0, rgba(15, 23, 42, 1) 45%, #020617 100%);
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.7),
        0 30px 70px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(148, 163, 184, 0.18);
    padding: 1.7rem 1.5rem 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: loginFloat 10s ease-in-out infinite;
}

.login-card::before {
    content: "";
    position: absolute;
    top: -120%;
    left: 50%;
    transform: translateX(-50%);
    width: 220%;
    height: 260%;
    background: radial-gradient(
        ellipse at 50% 70%,
        rgba(248, 250, 252, 0.14) 0,
        rgba(248, 250, 252, 0.03) 40%,
        transparent 65%
    );
    opacity: 0.95;
    pointer-events: none;
}

.login-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0, transparent 65%);
    filter: blur(8px);
    opacity: 0.9;
    pointer-events: none;
}

@keyframes loginFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -4px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@media (hover: hover) {
    .login-card:hover {
        box-shadow:
            0 0 0 1px rgba(148, 163, 184, 0.7),
            0 35px 80px rgba(0, 0, 0, 1),
            0 0 70px rgba(125, 211, 252, 0.26);
    }
}

.login-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.7rem;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e5e7eb;
    text-shadow: 0 0 18px rgba(15, 23, 42, 0.9);
}

.login-subtitle {
    margin: 0 0 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
    opacity: 0.9;
    letter-spacing: 0.03em;
    animation: subtitleFlicker 5.5s ease-in-out infinite;
}

@keyframes subtitleFlicker {
    0% {
        opacity: 0.92;
        text-shadow: 0 0 8px rgba(148, 163, 184, 0.25);
    }
    6% {
        opacity: 0.4;
        text-shadow: 0 0 2px rgba(15, 23, 42, 0.7);
    }
    12% {
        opacity: 0.95;
        text-shadow: 0 0 10px rgba(148, 163, 184, 0.35);
    }
    18% {
        opacity: 0.6;
    }
    24% {
        opacity: 0.92;
    }
    100% {
        opacity: 0.92;
        text-shadow: 0 0 8px rgba(148, 163, 184, 0.25);
    }
}

.alert {
    padding: 0.6rem 0.7rem;
    border-radius: 0.55rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.alert-error {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(153, 27, 27, 0.85));
    border: 1px solid rgba(248, 113, 113, 0.85);
    color: #fee2e2;
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.8);
}

.login-form {
    margin-top: 0.35rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}

.field label {
    font-size: 0.82rem;
    color: #d1d5db;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.field input {
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background-color: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 0.9rem;
    outline: none;
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    transition:
        border-color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background-color 0.18s ease-out;
}

.field input::placeholder {
    color: #6b7280;
}

.field input:focus {
    border-color: #38bdf8;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.7),
        0 0 28px rgba(56, 189, 248, 0.35);
    background-color: #020617;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 999px;
    border: none;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition:
        transform 0.12s ease-out,
        box-shadow 0.12s ease-out,
        background-position 0.18s ease-out,
        opacity 0.12s ease-out;
}

.btn-primary {
    background-image: linear-gradient(135deg, #0ea5e9, #a855f7);
    background-size: 140% 140%;
    background-position: 0% 50%;
    color: #f9fafb;
    box-shadow:
        0 12px 28px rgba(8, 47, 73, 0.9),
        0 0 26px rgba(59, 130, 246, 0.65);
}

.btn-primary:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow:
        0 16px 36px rgba(8, 47, 73, 1),
        0 0 36px rgba(59, 130, 246, 0.85);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 10px 24px rgba(8, 47, 73, 0.9),
        0 0 18px rgba(59, 130, 246, 0.6);
}

.login-links {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

.login-links a {
    color: #f97316;
    text-decoration: none;
    position: relative;
}

.login-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f97316, transparent);
    opacity: 0.7;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.16s ease-out;
}

.login-links a:hover::after {
    transform: scaleX(1);
}

@media (min-width: 768px) {
    .login-page {
        padding: 2.5rem 1.5rem;
    }

    .login-card {
        padding: 2rem 1.9rem 1.4rem 1.9rem;
    }

    .login-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 1.2rem 1rem 1rem 1rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.78rem;
    }
}
