/* Estilos específicos para las páginas de Account/Login */

/* Contenedor principal de formulario */
.login-box {
    width: 100%;
    max-width: 380px;
    padding: 0;
}

.login-box h1 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 8px;
    margin-top: 0;
    font-weight: 600;
    line-height: 1.3;
}

.login-box .subtitle {
    color: #6b7280;
    margin-bottom: 32px;
    margin-top: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Grupos de entrada - SOLO dentro de login-box */
.login-box .input-group {
    margin-bottom: 20px;
    display: block;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    margin-top: 0;
    line-height: 1;
}

.login-box .input-group .form-control {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.2s;
    background-color: #ffffff !important;
    color: #111827 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    line-height: 1.5;
}

.login-box .input-group .form-control:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    color: #111827 !important;
}

.login-box .input-group .form-control::placeholder {
    color: #9ca3af;
}

/* Botón principal - SOLO dentro de login-box */
.login-box .btn-ingresar {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 0;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    height: auto;
}

.login-box .btn-ingresar:hover {
    background-color: #1d4ed8;
}

.login-box .btn-ingresar:active {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Fila de recordarme - SOLO dentro de login-box */
.login-box .remember-me-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    margin-top: 0;
    gap: 5px;
}

.login-box .remember-me-row .form-check {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-box .remember-me-row .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    flex-shrink: 0;
    accent-color: #2563eb;
}

.login-box .remember-me-row .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.login-box .remember-me-row .form-check-label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin-bottom: 0;
    margin-left: 0;
    font-weight: normal;
    line-height: 1.5;
}

/* Enlaces de pie de página - SOLO dentro de login-box */
.login-box .footer-links {
    margin-top: 24px;
    margin-bottom: 0;
    text-align: center;
    font-size: 14px;
}

.login-box .footer-links a {
    color: #2563eb;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
    line-height: 1.6;
    font-size: 14px;
}

.login-box .footer-links a:last-child {
    margin-bottom: 0;
}

.login-box .footer-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.login-box .footer-links a span {
    color: #2563eb;
    font-weight: 600;
}

/* Validación de formularios - SOLO dentro de login-box */
.login-box .input-group .text-danger,
.login-box .text-danger {
    display: block;
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 12px;
    color: #dc2626;
    line-height: 1.4;
}

/* StatusMessage y Alerts */
.login-box .alert {
    margin-bottom: 24px;
    margin-top: 0;
    padding: 12px 14px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    line-height: 1.5;
}

.login-box .alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.login-box .alert-success {
    background-color: #dbeafe;
    color: #0c4a6e;
}

.login-box .alert-info {
    background-color: #dbeafe;
    color: #0c4a6e;
}

/* Validación Summary */
.login-box .validation-summary-valid {
    display: none;
}

/* Resetear márgenes de formularios - SOLO dentro de login-box */
.login-box form {
    margin: 0;
    padding: 0;
}

.login-box article.content {
    margin: 0;
    padding: 0;
}

.login-box main.auth-main {
    margin: 0;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        max-width: 100%;
        padding: 0 20px;
    }

    .login-box h1 {
        font-size: 20px;
    }

    .login-box .input-group label {
        font-size: 13px;
    }

    .footer-links {
        font-size: 14px;
    }
}

