* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0f172a, #172554);
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

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

.brand-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    background: #2563eb;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.brand h1 {
    font-size: 28px;
    letter-spacing: 3px;
    margin: 0 0 10px;
}

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

.login-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-card h2 {
    font-size: 24px;
    margin: 0 0 10px;
}

.subtitle {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
}

label {
    display: block;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

button {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #1d4ed8;
}

button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.help-text {
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    margin: 24px 0 0;
}

footer {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 28px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-card {
        padding: 24px;
    }

    .brand h1 {
        font-size: 24px;
    }
}

.success-alert {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid #22c55e;
    color: #86efac;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
