/* =========================================
   PÁGINA DE LOGIN
   ========================================= */
.login-wrapper {
    background-color: #f8fafc; /* Fondo ligeramente gris para contrastar con la tarjeta */
    min-height: calc(100vh - 80px - 300px); /* Ajuste de altura entre header y footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
}

.login-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icono Superior Círculo Violeta Claro */
.login-icon-box {
    width: 56px;
    height: 56px;
    background-color: #f3e8ff;
    color: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.login-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Contenedor y Botones de Login */
.login-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.btn-login-primary {
    background-color: #8b5cf6;
    color: white;
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-login-primary:hover {
    background-color: #7c3aed;
}

.btn-login-secondary {
    background-color: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-login-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.login-form {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin-top: 1.5rem;
            text-align: left;
        }
        .form-group-login {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }
        .form-group-login label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
        }
        .form-input-login {
            width: 100%;
            padding: 0.75rem 0.9rem;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 0.95rem;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }
        .form-input-login:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }
        .alert-error {
            background-color: #fef2f2;
            border-left: 4px solid #ef4444;
            color: #991b1b;
            padding: 0.75rem;
            border-radius: 6px;
            font-size: 0.88rem;
            margin-top: 1rem;
            text-align: left;
        }
        .btn-submit-login {
            width: 100%;
            background-color: #6536ec !important;
            color: #ffffff;
            border: none;
            padding: 0.85rem;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            margin-top: 0.5rem;
        }
        .btn-submit-login:hover {
            background-color: #7c4dff;
        }

/* Adaptación Mobile */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 2.5rem 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
}