:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.8);
    --input-bg: #1e293b;
    --border: #334155;
    --text-muted: #94a3b8;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    animation: fadeIn 0.6s ease;
}

.logo {
    text-align: center;
    margin-bottom: 8px; /* Reduzido para aproximar do subtítulo */
    color: white;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 28px; /* Espaçamento ideal antes dos campos de input */
    font-weight: 400;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: white;
    font-size: 14px;
    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 6px;
}

button:hover {
    background: var(--primary-hover);
}

button:disabled {
    background: #64748b;
    cursor: not-allowed;
}

.error {
    color: var(--error);
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
}

.footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
}