/* /assets/css/auth-contact.css - Obra Maestra por Pancho de Goya (Refactorizado por Juan Alberto) */

/* --- Estructura y Contenedor Principal --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--background-color);
}

.auth-panel {
    display: grid;
    grid-template-columns: 4fr 5fr;
    width: 100%;
    max-width: 1000px;
    min-height: 650px;
    background-color: var(--surface-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* --- Panel Visual (Izquierda) --- */
.auth-panel__visual {
    position: relative;
    color: var(--text-on-secondary-color);
    background: url('https://images.unsplash.com/photo-1524368535928-5b5e00ddc76b?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=600') center/cover;
    animation: zoom-in-out 30s ease-in-out infinite;
}

@keyframes zoom-in-out {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.auth-panel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.8), rgba(var(--secondary-rgb), 0.85));
}

html[data-theme='dark'] .auth-panel__overlay {
     background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.7), rgba(var(--secondary-rgb), 0.85));
}


.auth-panel__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 3rem;
}

.auth-panel__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-secondary-color);
    text-decoration: none;
    align-self: flex-start;
}

.auth-panel__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-on-secondary-color);
    line-height: 1.2;
    margin-top: auto;
}

.auth-panel__subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: auto;
    padding-top: 0.5rem;
    color: var(--text-on-secondary-color);
}

/* --- Panel del Formulario (Derecha) --- */
.auth-panel__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.auth-form__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.auth-form__subtitle {
    color: var(--text-muted-color);
    margin-bottom: 2rem;
}

.auth-form__group {
    margin-bottom: 1.5rem;
}

.auth-form__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.auth-form__input-wrapper {
    position: relative;
}

.auth-form__input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border-color);
    transition: color 0.3s;
}

.auth-form__input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
}

.auth-form__input::placeholder {
    color: var(--text-muted-color);
}

.auth-form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.auth-form__input:focus + i,
.auth-form__input-wrapper:focus-within i {
    color: var(--primary-color);
}

.auth-form__options {
    text-align: right;
    margin-bottom: 1.5rem;
}

.auth-form__link {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}
.auth-form__link:hover {
    text-decoration: underline;
}

.auth-form__submit.btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--text-on-primary-color);
    border: none;
    border-radius: var(--border-radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-form__submit.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.auth-form__footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

.auth-form__link--bold {
    font-weight: 600;
}

/* --- Adaptación Responsiva --- */
@media (max-width: 900px) {
    .auth-panel {
        grid-template-columns: 1fr;
    }
    .auth-panel__visual {
        display: none;
    }
    .auth-panel__form {
        padding: 2rem;
    }
}

/* --- Estilos de Validación y Errores --- */
.form-error {
    color: var(--danger-color, #dc3545);
    font-size: 0.875em;
    margin-top: 0.5rem;
    display: block;
}

.auth-form__input.is-invalid {
    border-color: var(--danger-color, #dc3545);
}

.auth-form__input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.auth-form__input.is-invalid + i {
    color: var(--danger-color, #dc3545);
}