/*
 * Estilos para vistas de autenticación (login, register, password reset, etc.)
 * KAISARA Admin - Transformación · Crecimiento · Propósito
 */

/* Estilos Generales */
body.auth-page {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Sans-serif para el texto general */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('/background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Contenedor principal de la pantalla */
.auth-screen-container {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    text-align: center;
    box-sizing: border-box;
}

/* Sección del Logotipo */
.auth-logo-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Marcadores para el gráfico (se debe reemplazar por la imagen real) */
.auth-logo-graphic-placeholder {
    width: 620px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/kaisara-butterfly.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    margin-bottom: -140px;
}

.auth-logo-kaisara {
    font-family: 'Georgia', serif; /* Fuente serif elegante para la marca */
    font-size: 100px;
    color: #1a3d32; /* Verde oscuro */
    letter-spacing: 2px;
    font-weight: 500;
    margin: 0;
}

.auth-logo-slogan {
    color: #c9a56a; /* Dorado */
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Sección de Texto de Bienvenida */
.auth-welcome-section {
    margin-bottom: 40px;
}

.auth-welcome-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin: 0 0 10px 0;
}

.auth-welcome-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Formularios de Autenticación */
.auth-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

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

.auth-form-input {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Espacio para iconos */
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-form-input:focus {
    border-color: #c9a56a;
    outline: none;
    background-color: #fff;
}

/* Iconos (simulados con Unicode o placeholders) */
.auth-input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 16px;
}

.auth-input-icon-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 16px;
    cursor: pointer;
}

/* Botones de formulario */
.auth-btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #1a3d32; /* Verde oscuro */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-btn-submit:hover {
    background-color: #122c23;
}

.auth-btn-secondary {
    width: 100%;
    padding: 14px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Enlaces Inferiores */
.auth-footer-links {
    margin-top: 25px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.auth-footer-links a {
    text-decoration: none;
    color: inherit;
}

.auth-footer-links .auth-link-reset {
    display: block;
    margin-bottom: 15px;
}

.auth-footer-links .auth-link-register {
    color: #0000ff; /* Dorado para el enlace de registro */
    font-weight: 500;
}

/* Mensajes de error y validación */
.auth-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.auth-form-input.is-invalid {
    border-color: #dc3545;
}

.auth-success-message {
    color: #28a745;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    background-color: #f8fff9;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

/* Estilos adicionales para inputs con ícono derecho */
.auth-input-wrapper .auth-input-icon-right {
    cursor: pointer;
    user-select: none;
}

.auth-input-wrapper .auth-input-icon-right:hover {
    color: #666;
}

/* Recordar contraseña y opciones adicionales */
.auth-remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.auth-remember-me input {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-screen-container {
        padding: 20px;
    }

    .auth-logo-graphic-placeholder {
        width: 100%;
        max-width: 400px;
        height: 200px;
        margin-bottom: -100px;
    }

    .auth-logo-kaisara {
        font-size: 60px;
    }

    .auth-logo-slogan {
        font-size: 10px;
    }

    .auth-welcome-title {
        font-size: 20px;
    }

    .auth-welcome-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .auth-logo-kaisara {
        font-size: 48px;
    }

    .auth-logo-graphic-placeholder {
        height: 150px;
        margin-bottom: -80px;
    }

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

/* Estados de carga */
.auth-btn-loading {
    position: relative;
    color: transparent;
}

.auth-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spinner 0.6s linear infinite;
}

@keyframes auth-spinner {
    to { transform: rotate(360deg); }
}
