/* =============================================================================
   RutaTurismo360 - Global Auth Template Styles
   =============================================================================

   Estilos globales para páginas públicas de autenticación y validación.
   Uso: /login, /verify-email y vistas públicas similares.

   Prefijo: rt360-auth-*
   ============================================================================= */

/* =============================================================================
   1. LAYOUT BASE
   ============================================================================= */

.rt360-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem;
}

.rt360-auth-top-controls {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rt360-auth-grid {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

/* =============================================================================
   2. TARJETA DE LOGIN
   ============================================================================= */

.rt360-auth-card {
    background: var(--rz-card-background-color, #fff);
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: rt360-auth-slide-in-left 0.6s ease-out;
}

.rt360-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rt360-auth-demo-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.rt360-auth-full-width {
    width: 100%;
}

.rt360-field-pin-content{
    border: none !important;
}

    .rt360-field-pin-content label {
        margin-top: -10px;
    }

.rt360-auth-pin-group {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    background: var(--background-color);
}

.rt360-auth-pin-slot {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid var(--rz-input-value-color, var(--rz-text-color)) !important;
    text-align: center;
    border-radius: 12px;
    background: var(--rz-input-background-color, var(--rz-base-background-color));
    color: var(--rz-input-value-color, var(--rz-text-color));
    text-align: center;
    font-size: 1.25rem;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    line-height: 1;
    caret-color: transparent;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rt360-auth-pin-slot:focus {
    border-color: var(--rz-primary) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.rt360-auth-pin-slot::selection {
    background: transparent;
}

.rt360-auth-button-content {
    width: 100%;
}

.rt360-auth-role-button {
    justify-content: flex-start;
    text-align: left;
}

.rt360-auth-role-content {
    width: 100%;
    align-items: flex-start;
    text-align: left;
}

.rt360-auth-role-title {
    font-weight: 700;
}

.rt360-auth-role-description {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* =============================================================================
   3. PANEL DECORATIVO
   ============================================================================= */

.rt360-auth-decoration {
    color: rgba(255, 255, 255, 0.96);
    animation: rt360-auth-slide-in-right 0.6s ease-out;
}

.rt360-auth-decoration-content {
    max-width: 420px;
}

.rt360-auth-decoration-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.rt360-auth-decoration-description {
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.6;
}

.rt360-auth-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rt360-auth-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.5;
}

.rt360-auth-benefit-icon {
    color: #fff;
    font-size: 1.5rem !important;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

/* =============================================================================
   4. DARK MODE
   ============================================================================= */
html[data-theme="dark"] .rt360-auth-pin-group {
    background: var(--background-dark) !important;
    border: none !important;
}

html[data-theme="dark"] .rt360-auth-card {
    background: var(--rz-base-300, #1e1e2e);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .rt360-auth-pin-slot {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: rgba(49, 49, 49, 0.94) !important;
}

/* =============================================================================
   5. RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
    .rt360-auth-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rt360-auth-decoration {
        display: none;
    }
}

@media (max-width: 576px) {
    .rt360-auth-page {
        padding: 0.75rem;
    }

    .rt360-auth-top-controls {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .rt360-auth-card {
        padding: 1.5rem 1rem;
    }

    .rt360-auth-pin-group {
        gap: 0.5rem;
    }

    .rt360-auth-pin-slot {
        min-height: 3rem;
        font-size: 1.1rem;
    }
}

/* =============================================================================
   6. ANIMACIONES
   ============================================================================= */

@keyframes rt360-auth-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rt360-auth-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Demo role selector cards ── */
.rt360-demo-role-card {
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rt360-demo-role-card:hover {
    border-color: var(--rt360-color-primary-light, #7db4e8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rt360-demo-role-card--selected {
    border-color: var(--rt360-color-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.rt360-demo-role-icon {
    font-size: 2rem;
    color: var(--rt360-color-primary, #3b82f6);
}

.rt360-info-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rt360-border-subtle, rgba(0,0,0,0.06));
}

.rt360-info-row:last-child {
    border-bottom: none;
}

.rt360-info-row__icon {
    color: var(--rt360-color-primary, #3b82f6);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
