/* public/assets/css/office-auth.css */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
}

/* Contenedor Principal (Layout Split) */
.auth-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sección del Formulario (Izquierda) */
.auth-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    width: 100%;
}

.auth-form-container {
    width: 100%;
    max-width: 420px; /* Ancho máximo del formulario para que no se estire de más */
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    max-height: 60px;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #666666;
    font-size: 0.95rem;
}

/* Estilos de Formulario */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    /* Usaremos la variable CSS que inyectaremos desde PHP */
    border-color: var(--tenant-color); 
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tenant-color) 20%, transparent);
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-link {
    color: var(--tenant-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background-color: var(--tenant-color);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Sección de la Imagen (Derecha) - Oculta en Móviles por defecto */
.auth-image-section {
    display: none;
}

/* ==========================================
   MEDIA QUERIES (Tablet y Escritorio)
   ========================================== */
@media (min-width: 768px) {
    .auth-layout {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 50% Formulario - 50% Imagen */
    }

    .auth-image-section {
        display: block;
        /* La imagen se define aquí o se inyecta por estilo en línea */
        background-color: #f3f4f6;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }

    /* Opcional: Un overlay oscuro sobre la imagen para darle elegancia */
    .auth-image-section::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    }
}