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

* {
    box-sizing: border-box;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 35%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.10), transparent 35%),
        #070b14;
    color: #f8fafc;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-box {
    width: 100%;
    max-width: 430px;
    padding: 32px 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.30);
}

.login-brand h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.login-brand p {
    margin: 9px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form label {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #263247;
    border-radius: 12px;
    outline: none;
    background: #0b1220;
    color: #f8fafc;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-form input::placeholder {
    color: #64748b;
}

.login-form input:focus {
    border-color: #3b82f6;
    background: #0d1627;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.login-form button {
    width: 100%;
    height: 50px;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transition:
        transform 0.15s ease,
        opacity 0.15s ease,
        box-shadow 0.15s ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

.login-form button:active {
    transform: translateY(0);
}

.login-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.login-message {
    margin-top: 12px;
}

.login-message .msg {
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 13px;
}

.login-register {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.login-register a {
    color: #60a5fa;
    font-weight: 650;
    text-decoration: none;
}

.login-register a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 18px 14px;
    }

    .login-box {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .login-brand h1 {
        font-size: 25px;
    }
}