* {
    box-sizing: border-box;
}

:root {
    --navy-950: #0b1220;
    --navy-900: #0f172a;
    --navy-800: #16213e;
    --navy-700: #1d3557;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --white: #ffffff;
    --bg-soft: #f4f7fb;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.14), transparent 30%),
        linear-gradient(180deg, #eef4ff 0%, #f8fbff 45%, #f4f7fb 100%);
    color: var(--navy-900);
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-badge img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #007bff;
}

.eye-icon {
    display: block;
}

.login-header h1 {
    margin: 0 0 10px;
    font-size: 30px;
    color: var(--navy-800);
}

.login-header p {
    margin: 0;
    font-size: 15px;
    color: var(--slate-500);
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-800);
}

.field input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--slate-300);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--navy-900);
    background: #fbfdff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
    background: var(--white);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -4px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--slate-700);
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
}

.login-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-600);
}

.login-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
}

.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.login-footer p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--slate-500);
}

.register-link {
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-800);
    background: var(--blue-100);
    padding: 10px 18px;
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
}

.register-link:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .login-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

.login-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.login-alert--error {
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
}

.login-alert--success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#tituloIndex {
  font-size: 22px!important;
}
