/* modern_acceso.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'SuascsFont';
    src: url('/assets/suascs.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-glow: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-color: #6366f1;
    --error-bg: rgba(239, 68, 68, 0.15);
    --error-border: rgba(239, 68, 68, 0.4);
    --error-text: #fca5a5;
    --success-color: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Container principal */
.app-container {
    width: 100%;
    max-width: 550px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Card estilo Glassmorphism */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.1);
}

/* Cabecera / Logo */
.logo-container {
    text-align: center;
    margin-bottom: 0.5rem;
}

.logo-text {
    font-family: 'SuascsFont', sans-serif;
    font-size: 3rem;
    color: #4F81BD;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.datetime-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Información de Licencia */
.license-info {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.license-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.license-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Barra de Progreso Moderna */
.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-glow);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

/* Mensajes de Alerta */
.alert-box {
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde047;
}

.alert-danger {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

/* Formularios e Inputs */
.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding-left: 0.25rem;
}

.input-field {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-field:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Botones Modernos */
.btn-primary {
    width: 100%;
    padding: 1.1rem;
    border: none;
    border-radius: 14px;
    background: var(--primary-glow);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

/* Menú de Opciones de Autenticación */
.auth-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.auth-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-main);
}

.auth-option-card img, .auth-option-card svg {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.auth-option-card span {
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-option-card:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

.auth-option-card:hover img, .auth-option-card:hover svg {
    transform: scale(1.1);
}

/* Opción de Huella Digital (Deshabilitada/Biométrica) */
.biometric-card {
    position: relative;
}

.biometric-card.disabled {
    opacity: 0.8;
}

.fingerprint-icon {
    color: #a855f7;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

/* Retorno / Volver */
.nav-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Grilla de Iconos de Sistemas */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 1rem 0;
}

.system-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s;
}

.system-item:hover {
    transform: scale(1.08);
}

.system-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s;
}

.system-item:hover .system-icon {
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
}

.system-title {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Modal de Autenticación Biométrica */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
}

.modal-content {
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
    animation: modalAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}



/* ==========================================================================
   SUASCS UNIVERSAL COMBOBOX / SELECT DARK MODE STYLING (CROSS-BROWSER / LINUX)
   ========================================================================== */
html, body {
    color-scheme: dark !important;
}

select,
.custom-select,
.select-input,
.form-control select,
select.form-control {
    color-scheme: dark !important;
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0.5rem !important;
    padding: 0.6rem 2.2rem 0.6rem 0.9rem !important;
    font-size: 0.88rem !important;
    font-family: 'Outfit', sans-serif !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.1rem 1.1rem !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

select:focus,
.custom-select:focus,
.select-input:focus,
select.form-control:focus {
    border-color: #38bdf8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
}

select:disabled,
.custom-select:disabled,
.select-input:disabled,
select.form-control:disabled {
    background-color: #0f172a !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Opciones de la lista desplegable */
select option,
.custom-select option,
.select-input option,
select.form-control option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    padding: 0.6rem 0.8rem !important;
}

select option:checked,
select option:hover {
    background-color: #334155 !important;
    color: #38bdf8 !important;
}