:root {
    --login-azul: #192C53;
    --login-verde: #00FF56;
    --login-bg: #f2f4f8;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--login-bg);
    color: #1e1e1e;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 28px 22px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(25, 44, 83, 0.12);
}

.login-logo {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.login-title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--login-azul);
    line-height: 1.25;
}

.login-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.login-alert--success {
    color: #155724;
    background: #d4edda;
}

.login-alert--error {
    color: #721c24;
    background: #f8d7da;
}

.login-alert p {
    margin: 0 0 4px;
}

.login-alert p:last-child {
    margin-bottom: 0;
}

.login-field {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.25;
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.login-field:focus {
    outline: none;
    border-color: var(--login-azul);
    box-shadow: 0 0 0 3px rgba(25, 44, 83, 0.15);
}

.login-field::placeholder {
    color: #9ca3af;
}

.login-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--login-azul);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.login-submit:hover,
.login-submit:focus {
    background: #243a6e;
}

.login-submit:active {
    transform: scale(0.98);
}

@media (min-width: 480px) {
    body.login-page {
        padding: 32px 24px;
    }

    .login-card {
        padding: 36px 32px 40px;
    }

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