﻿/* ==========================================================================
   SISTEMA DE ESTILOS UNIFICADO PARA MODALES NATIVOS (SIGE-UISRAEL)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. OVERLAY Y CONTENEDORES (CARDS)
   -------------------------------------------------------------------------- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .custom-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.custom-modal-card {
    background: #ffffff;
    width: 580px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s ease;
}

.custom-modal-overlay.active .custom-modal-card {
    transform: scale(1) translateY(0);
}

/* Modificadores de ancho según la vista */
.custom-modal-card.reg-card-width {
    width: 580px;
}

.custom-modal-card.login-card-width {
    width: 420px;
}

.custom-modal-card.sm-card-width {
    width: 360px;
}

/* Botón de Cierre (X) */
.custom-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s;
    z-index: 10;
}

    .custom-modal-close:hover {
        color: #0f172a;
    }

/* --------------------------------------------------------------------------
   2. TIPOGRAFÍA Y ESTRUCTURA DE TEXTOS
   -------------------------------------------------------------------------- */
.modal-reg-container,
.modal-reg-container * {
    box-sizing: border-box !important;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

.modal-reg-container {
    padding: 32px 36px;
}

.modal-reg-header {
    text-align: center;
    margin-bottom: 24px;
}

.reg-badge-tag {
    background-color: #e0e7ff;
    color: #334484;
    font-size: 8.5pt;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.reg-title {
    font-size: 18pt;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.reg-subtitle {
    font-size: 9.5pt;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   3. SISTEMA DE REJILLA (CSS GRID / FLEXBOX)
   -------------------------------------------------------------------------- */
.reg-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.form-group-reg {
    display: flex;
    flex-direction: column;
}

.full-width {
    width: 100%;
}

.half-width {
    width: calc(50% - 8px);
}

.field-label {
    font-size: 9pt;
    font-weight: 600;
    color: #334484;
    margin-bottom: 6px;
}

.id-input-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.callback-wrapper {
    flex-grow: 1;
}

/* --------------------------------------------------------------------------
   4. SOBRESCRITURA DE CONTROLES DEVEXPRESS (.dx-custom-input)
   -------------------------------------------------------------------------- */

/* Reset al contenedor principal de controles (TextBox, ComboBox, DateEdit) */
.dx-custom-input,
.dx-custom-input[class*="dxeControl"],
.dx-custom-input table.dxeTextBoxSys,
.dx-custom-input table.dxeTextBox,
.dx-custom-input table.dxeButtonEditSys,
.dx-custom-input table.dxeButtonEdit {
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-collapse: separate !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    background-image: none !important;
    height: 38px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* Limpieza de bordes, sombras y fondos internos */
    .dx-custom-input td.dxeEditAreaSys,
    .dx-custom-input td.dxeEditArea,
    .dx-custom-input input.dxeEditAreaSys,
    .dx-custom-input input.dxeEditArea,
    .dx-custom-input td.dxeButtonEditCell,
    .dx-custom-input td.dxeButtonEditButton {
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        background-image: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Padding e ingreso de texto interno */
    .dx-custom-input input.dxeEditAreaSys,
    .dx-custom-input input.dxeEditArea {
        padding: 0 12px !important;
        font-size: 9.5pt !important;
        height: 100% !important;
    }

    /* Estado Enfocado (Focus) */
    .dx-custom-input.dxeFocused,
    .dx-custom-input table.dxeTextBoxFocused,
    .dx-custom-input table.dxeButtonEditFocused {
        border-color: #334484 !important;
        box-shadow: 0 0 0 3px rgba(51, 68, 132, 0.18) !important;
    }

    /* Botón desplegable del ComboBox y DateEdit */
    .dx-custom-input td.dxeButtonEditButton {
        padding: 0 8px !important;
        vertical-align: middle !important;
    }

/* --------------------------------------------------------------------------
   5. BOTONES Y ACCIONES
   -------------------------------------------------------------------------- */
.modal-reg-footer {
    margin-top: 24px;
}

.btn-submit-reg {
    background-color: #334484 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-weight: 600 !important;
    font-size: 10.5pt !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(51, 68, 132, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer;
}

    .btn-submit-reg:hover {
        background-color: #253366 !important;
        transform: translateY(-1px);
    }

.lnk-forgot-password {
    font-size: 8.5pt !important;
    color: #334484 !important;
    text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   6. COMPONENTES ADICIONALES (REDES SOCIALES)
   -------------------------------------------------------------------------- */
.social-icons-container {
    width: 100%;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.social-icons-table {
    margin: 0 auto;
    border-spacing: 12px 0;
}

    .social-icons-table img {
        transition: transform 0.2s ease;
    }

        .social-icons-table img:hover {
            transform: scale(1.12);
        }

/* --------------------------------------------------------------------------
   7. ADAPTABILIDAD MÓVIL
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
    .half-width {
        width: 100%;
    }

    .modal-reg-container {
        padding: 24px 18px;
    }

    .id-input-group {
        flex-direction: column;
    }

        .id-input-group .dx-custom-input {
            width: 100% !important;
        }
}



/**/

/* Redes Sociales en Modal */
.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

    .social-links-container a img {
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

        .social-links-container a img:hover {
            transform: translateY(-2px);
            opacity: 0.85;
        }

/* Enlace Olvidé mi Contraseña */
.link-reset-password {
    color: #334484 !important;
    font-size: 9pt !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

    .link-reset-password:hover {
        text-decoration: underline !important;
    }