* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 35%),
        linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-page {
    width: 100%;
    max-width: 430px;
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 26px;
    padding: 35px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.45);
    animation: aparecer 0.6s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    width: 95px;
    height: 95px;
    margin: 0 auto 15px;
    background: #eff6ff;
    border-radius: 25px;
    padding: 10px;
    border: 2px solid #dbeafe;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.20);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand h1 {
    font-size: 36px;
    color: #1e3a8a;
    margin-bottom: 5px;
}

.brand p {
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
}

.alerta-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 5px solid #dc2626;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.login-form h2 {
    color: #111827;
    font-size: 24px;
    margin-bottom: 6px;
}

.subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 22px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    background: #f8fafc;
}

.input-group input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 22px;
    font-size: 14px;
}

.remember {
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.options a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.options a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.footer {
    margin-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px;
        border-radius: 20px;
    }

    .brand h1 {
        font-size: 30px;
    }

    .options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}