/* Estilos para las páginas de autenticación */

.auth-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh; /* Reducido ligeramente */
    padding: 2rem 1rem; /* Padding horizontal para móviles */
}

.auth-container {
    background-color: white;
    border-radius: 0.75rem; /* Ligeramente menos redondeado */
    box-shadow: var(--shadow-lg); /* Sombra un poco más pronunciada */
    padding: 2rem; /* Padding general */
    width: 100%;
    max-width: 420px; /* Más compacto */
    margin: 1rem auto; /* Margen vertical para que no pegue arriba/abajo */
}

.auth-logo {
    display: block;
    width: 150px; /* Tamaño del logo */
    height: auto;
    margin: 0 auto 1rem auto; /* Margen inferior reducido */
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05)); /* Sombra muy sutil */
}

.auth-container .page-title-section {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title-section p {
    color: var(--color-gray-600);
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-gray-800);
    font-size: 0.95rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f9fafc;
}

.auth-form input[type="text"]:hover,
.auth-form input[type="email"]:hover,
.auth-form input[type="password"]:hover {
    border-color: var(--color-gray-400);
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.15);
    background-color: white;
}

.auth-form .password-toggle {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.auth-form .password-toggle a {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-form .password-toggle a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.auth-form .terms-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    background-color: #f9fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-gray-200);
    margin-top: 0.75rem;
    margin-bottom: 1.25rem; /* Espacio después de términos, antes del botón de registro */
}

.auth-form .terms-check input[type="checkbox"] {
    margin-top: 0.2rem; /* Ajuste vertical del checkbox */
    transform: scale(0.9);
}

.auth-form .terms-check label {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: normal;
    color: var(--color-gray-600);
    margin-bottom: 0; /* Reset margin-bottom para label de términos */
}

.auth-form .terms-check a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-form .terms-check a:hover {
    text-decoration: underline;
}

/* .btn-block se hereda de components.css, solo ajustamos margen si es necesario */
.auth-form .btn-primary.btn-block {
    margin-top: 1.25rem; /* Espacio antes del botón principal */
    padding-top: 0.85rem; /* Ajuste de padding para altura */
    padding-bottom: 0.85rem;
    font-size: 0.95rem; /* Tamaño de fuente del botón */
}


.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-gray-400); /* Divisor más sutil */
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-gray-200); /* Línea del divisor más sutil */
}

.auth-divider span {
    padding: 0 0.75rem;
    font-size: 0.8rem; /* Texto "O" más pequeño */
    font-weight: 500;
    text-transform: uppercase; /* "O" en mayúsculas */
}

/* Contenedor del botón de Google */
#g_id_signin {
    margin: 1.25rem auto; /* Centrar y dar espacio */
    display: flex;       /* Para asegurar centrado si el botón no ocupa todo el ancho */
    justify-content: center;
}


.auth-switch {
    text-align: center;
    margin-top: 1.5rem; /* Un poco más de espacio al final */
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.auth-switch a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600; /* Enlace para registrarse/iniciar sesión un poco más prominente */
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Estilos responsivos */
@media (max-width: 576px) {
    .auth-container-wrapper {
        padding: 1rem; /* Menos padding en wrapper */
        align-items: flex-start; /* Alinear arriba en móviles */
        min-height: unset; /* Quitar min-height para que el contenido defina la altura */
    }
    .auth-container {
        padding: 1.5rem;
        max-width: 100%;
        border-radius: 0.5rem;
        box-shadow: none; 
        margin-top: 1rem; /* Margen superior en móviles */
    }
    
    .auth-container .page-title-section h1 {
        font-size: 1.75rem;
    }
    .auth-container .page-title-section p {
        font-size: 0.9rem;
    }
    .auth-logo {
        width: 120px;
        margin-bottom: 1rem;
    }
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 0.85rem 1rem; /* Inputs un poco más altos en móvil */
    }
    .auth-form .btn-primary.btn-block {
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
        font-size: 1rem;
    }
}
