@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color, var(--DS-color-content-neutral-default-rest));
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.icon {
    width: var(--icon-width);
    height: var(--icon-height);
    background-color: currentcolor;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: var(--icon-mask-image);
    mask-image: var(--icon-mask-image);
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.3125rem 0;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color, var(--DS-color-content-neutral-default-rest));
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color, var(--DS-color-content-neutral-default-rest));
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color, var(--DS-color-content-neutral-default-rest));
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary, var(--DS-primary-90));
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: var(--icon-provider-width);
    height: var(--icon-provider-height);
    background-image: var(--icon-provider-background-image);
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

/* Small Box Components - Compact Version */
.small-box {
    border-radius: 0.25rem;
    box-shadow: 0 0 1px rgba(0,0,0,0.125), 0 1px 3px rgba(0,0,0,0.2);
    display: block;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s;
    height: 85px;
}

.small-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.1);
}

.small-box > .inner {
    padding: 8px 12px;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-box > .inner > h3,
.small-box > .inner > h4 {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 4px 0;
    white-space: nowrap;
    padding: 0;
    line-height: 1;
}

.small-box > .inner > h4 {
    font-size: 24px;
}

.small-box > .inner > p {
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.2;
}

.small-box > .inner > small {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    margin-top: 2px;
    line-height: 1;
}

.small-box .icon {
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 0;
    font-size: 90px;
    color: rgba(0,0,0,0.15);
}

.small-box .icon > i {
    font-size: inherit;
    color: inherit;
}

/* Background Colors */
.small-box.bg-info {
    background-color: #17a2b8 !important;
    color: #fff;
}

.small-box.bg-success {
    background-color: #28a745 !important;
    color: #fff;
}

.small-box.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.small-box.bg-warning > .inner {
    color: #212529;
}

.small-box.bg-danger {
    background-color: #dc3545 !important;
    color: #fff;
}

.small-box.bg-primary {
    background-color: #007bff !important;
    color: #fff;
}

.small-box.bg-secondary {
    background-color: #6c757d !important;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .small-box > .inner > h3,
    .small-box > .inner > h4 {
        font-size: 22px;
    }

    .small-box .icon {
        font-size: 60px;
        top: 5px;
        right: 5px;
    }

    .small-box {
        height: 75px;
    }
}

/* Dashboard Profesional - Estadísticas */
.dashboard-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dashboard-stats .stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.dashboard-stats .stats-header h5 {
    color: #495057;
    font-weight: 600;
    margin: 0;
    font-size: 18px;
}

.dashboard-stats .stats-badge {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* KPI Cards Modernas */
.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    height: 120px;
}

/* KPI Cards Compactas Horizontales */
.kpi-card-compact {
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    height: 80px;
    margin-bottom: 12px;
}

.kpi-card:hover,
.kpi-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.kpi-card::before,
.kpi-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--kpi-color, #007bff);
}

.kpi-card.primary::before,
.kpi-card-compact.primary::before { background: linear-gradient(45deg, #007bff, #0056b3); }
.kpi-card.success::before,
.kpi-card-compact.success::before { background: linear-gradient(45deg, #28a745, #1e7e34); }
.kpi-card.warning::before,
.kpi-card-compact.warning::before { background: linear-gradient(45deg, #ffc107, #e0a800); }
.kpi-card.danger::before,
.kpi-card-compact.danger::before { background: linear-gradient(45deg, #dc3545, #bd2130); }
.kpi-card.info::before,
.kpi-card-compact.info::before { background: linear-gradient(45deg, #17a2b8, #138496); }

.kpi-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    background: var(--kpi-bg, rgba(0, 123, 255, 0.1));
    color: var(--kpi-color, #007bff);
    font-size: 24px;
    flex-shrink: 0;
}

.kpi-card.primary .kpi-icon,
.kpi-card-compact.primary .kpi-icon-compact { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.kpi-card.success .kpi-icon,
.kpi-card-compact.success .kpi-icon-compact { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.kpi-card.warning .kpi-icon,
.kpi-card-compact.warning .kpi-icon-compact { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.kpi-card.danger .kpi-icon,
.kpi-card-compact.danger .kpi-icon-compact { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.kpi-card.info .kpi-icon,
.kpi-card-compact.info .kpi-icon-compact { background: rgba(23, 162, 184, 0.1); color: #17a2b8; }

/* Iconos y contenido compacto */
.kpi-icon-compact {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: var(--kpi-bg, rgba(0, 123, 255, 0.1));
    color: var(--kpi-color, #007bff);
    font-size: 18px;
    flex-shrink: 0;
}

.kpi-content-compact {
    display: flex;
    align-items: center;
    height: 100%;
}

.kpi-details-compact {
    flex: 1;
}

.kpi-value-compact {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    margin-bottom: 2px;
}

.kpi-label-compact {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 1px;
}

.kpi-sublabel-compact {
    color: #adb5bd;
    font-size: 10px;
    font-weight: 400;
}

.kpi-details {
    flex: 1;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    margin-bottom: 4px;
}

.kpi-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.kpi-sublabel {
    color: #adb5bd;
    font-size: 12px;
    font-weight: 400;
}

/* Métricas Compactas */
.metrics-compact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* Para KPIs en metrics-compact */
.metrics-compact .kpi-card-compact {
    flex: 1;
    min-width: 200px;
    margin-bottom: 8px;
}

.metric-item {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    flex: 1;
    min-width: 140px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.metric-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #495057;
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        padding: 16px;
        margin-bottom: 16px;
    }

    .kpi-card {
        height: 100px;
        padding: 16px;
    }

    .kpi-card-compact {
        height: 70px;
        padding: 12px 16px;
        margin-bottom: 8px;
    }

    .kpi-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 12px;
    }

    .kpi-icon-compact {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 10px;
    }

    .kpi-value {
        font-size: 24px;
    }

    .kpi-value-compact {
        font-size: 18px;
    }

    .kpi-label-compact {
        font-size: 11px;
    }

    .kpi-sublabel-compact {
        font-size: 9px;
    }

    .metric-item {
        min-width: 120px;
        padding: 10px 12px;
    }

    .metric-value {
        font-size: 18px;
    }

    /* Responsive para metrics-compact con KPIs */
    .metrics-compact .kpi-card-compact {
        min-width: 180px;
    }
}

@media (max-width: 576px) {
    .metrics-compact {
        flex-direction: column;
        gap: 8px;
    }

    .metrics-compact .kpi-card-compact {
        min-width: 100%;
        height: 65px;
        padding: 12px 16px;
    }

    .kpi-icon-compact {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 8px;
    }

    .kpi-value-compact {
        font-size: 16px;
    }

    .kpi-label-compact {
        font-size: 10px;
    }

    .kpi-sublabel-compact {
        font-size: 8px;
    }
}

/* Z-Index Management for Popups and Loading Panels */
.popup-lookup-high-zindex {
    z-index: 1060 !important;
}

.dx-popup-wrapper {
    z-index: 1061 !important;
}

.dx-popup {
    z-index: 1062 !important;
}

.dx-loadingpanel {
    z-index: 1050 !important;
}

/* Asegurar que los overlays de DevExpress tengan el z-index correcto */
.dx-overlay-wrapper {
    z-index: 1063 !important;
}

/* ========================================
   LOGIN PAGE MODERN DESIGN
   ======================================== */

/* Background específico solo para la página de login */
.login-page {
    background: linear-gradient(-45deg, #667eea, #764ba2, #6a5acd, #483d8b) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    min-height: 100vh !important;
    width: 100% !important;
    position: relative !important;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container principal del login */
.login-page .main-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding: 20px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Card principal del login */
.login-page .block-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    width: 100% !important;
    max-width: 450px !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: slideInUp 0.8s ease-out !important;
}

.login-page .block-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Título del login */
.title {
    text-align: center !important;
    margin-bottom: 35px !important;
    padding-bottom: 20px !important;
}

.login-icon {
    margin-bottom: 20px !important;
}

.login-icon i {
    font-size: 3rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: iconPulse 2s ease-in-out infinite alternate !important;
}

@keyframes iconPulse {
    from {
        transform: scale(1);
        opacity: 0.8;
    }
    to {
        transform: scale(1.05);
        opacity: 1;
    }
}

.title-header-text {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.5px !important;
}

.title-content-text {
    color: #6c757d !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Campos del formulario */
.dx-formlayout {
    gap: 20px !important;
}

.dx-formlayout-item {
    margin-bottom: 20px !important;
}

.dx-formlayout-item-caption {
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
}

/* Estilo para los inputs de texto */
.dx-textbox,
.dx-texteditor {
    border: 2px solid rgba(118, 75, 162, 0.15) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

.dx-textbox:hover,
.dx-texteditor:hover {
    border-color: rgba(118, 75, 162, 0.3) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 0 0 3px rgba(118, 75, 162, 0.08) !important;
}

.dx-textbox.dx-state-focused,
.dx-texteditor.dx-state-focused {
    border-color: #764ba2 !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 0 0 4px rgba(118, 75, 162, 0.2) !important;
}

.dx-texteditor-input {
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: #495057 !important;
    line-height: 1.4 !important;
}

.dx-texteditor-input::placeholder {
    color: #adb5bd !important;
}

/* Checkbox "Remember me" */
.dx-checkbox {
    margin: 10px 0 !important;
}

.dx-checkbox-text {
    color: #495057 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.dx-checkbox-icon {
    border: 2px solid rgba(118, 75, 162, 0.3) !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.dx-checkbox-checked .dx-checkbox-icon {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    border-color: #764ba2 !important;
}

/* Botón de login */
.dx-button {
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.dx-button.w-100 {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4) !important;
    margin-top: 10px !important;
    height: 50px !important;
}

.dx-button.w-100:hover {
    background: linear-gradient(135deg, #6a4190 0%, #5a6fd8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5) !important;
}

.dx-button.w-100:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3) !important;
}

/* Efecto de click en el botón */
.dx-button.w-100::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.dx-button.w-100:active::before {
    width: 300px;
    height: 300px;
}

/* Separador "or" */
.or {
    display: flex !important;
    align-items: center !important;
    margin: 30px 0 25px 0 !important;
    position: relative !important;
}

.or-line {
    flex: 1 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, #e9ecef 50%, transparent 100%) !important;
    border: none !important;
}

/* ========================================
   Estilos para inputs estándar de Bootstrap en Login
   ======================================== */

/* Inputs de texto estándar en login */
.login-page .form-control {
    border: 2px solid rgba(118, 75, 162, 0.15) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: #495057 !important;
    line-height: 1.4 !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
}

/* Contenedor de campos del formulario */
.login-page .mb-4 {
    margin-bottom: 20px !important;
}

.login-page .block-content form {
    width: 100% !important;
}

.login-page .form-control:hover {
    border-color: rgba(118, 75, 162, 0.3) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 0 0 3px rgba(118, 75, 162, 0.08) !important;
}

.login-page .form-control:focus {
    border-color: #764ba2 !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 0 0 4px rgba(118, 75, 162, 0.2) !important;
    outline: none !important;
}

.login-page .form-control::placeholder {
    color: #adb5bd !important;
}

/* Labels del formulario */
.login-page .form-label {
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
    display: block !important;
}

.login-page .form-label i {
    color: #764ba2 !important;
}

/* Checkbox en login */
.login-page .form-check {
    margin: 20px 0 !important;
    padding-left: 32px !important;
    display: flex !important;
    align-items: center !important;
}

.login-page .form-check-input {
    width: 22px !important;
    height: 22px !important;
    border: 2px solid rgba(118, 75, 162, 0.3) !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    margin-left: -32px !important;
    margin-top: 0 !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.login-page .form-check-input:checked {
    background-color: #764ba2 !important;
    border-color: #764ba2 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

.login-page .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2) !important;
    outline: none !important;
}

.login-page .form-check-input:hover {
    border-color: #764ba2 !important;
}

.login-page .form-check-label {
    color: #495057 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
}

/* Botón de login estándar */
.login-page .login-btn {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4) !important;
    margin-top: 10px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 16px 24px !important;
}

.login-page .login-btn:hover {
    background: linear-gradient(135deg, #6a4190 0%, #5a6fd8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5) !important;
}

.login-page .login-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3) !important;
}

/* Mensajes de validación */
.login-page .text-danger {
    color: #dc3545 !important;
    font-size: 13px !important;
    margin-top: 6px !important;
    display: block !important;
}

/* ========================================
   Estilos para Diálogos de Confirmación DevExpress
   ======================================== */

/* Diálogo de confirmación general - PROFESIONAL Y LLAMATIVO */
.confirmation-dialog .dxbl-message-box {
    min-width: 480px;
    max-width: 580px;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(102, 126, 234, 0.6);
    overflow: hidden;
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 0 40px rgba(102, 126, 234, 0.5);
    }
}

.confirmation-dialog .dxbl-message-box-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 26px;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.confirmation-dialog .dxbl-message-box-body {
    padding: 28px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2c3e50;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    white-space: pre-line;
    border-left: 4px solid #667eea;
    font-weight: 500;
}

.confirmation-dialog .dxbl-message-box-footer {
    padding: 22px 28px;
    background: linear-gradient(180deg, #f1f3f9 0%, #e8ebf4 100%);
    border-top: 2px solid #667eea;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.confirmation-dialog .dxbl-message-box-footer .btn-primary,
.confirmation-dialog .dxbl-message-box-footer .dxbl-btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirmation-dialog .dxbl-message-box-footer .btn-primary:hover,
.confirmation-dialog .dxbl-message-box-footer .dxbl-btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.5);
}

.confirmation-dialog .dxbl-message-box-footer .btn-secondary,
.confirmation-dialog .dxbl-message-box-footer .dxbl-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirmation-dialog .dxbl-message-box-footer .btn-secondary:hover,
.confirmation-dialog .dxbl-message-box-footer .dxbl-btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.4);
}

/* Diálogo de eliminación y multilinea */
.multiline-messagebox .dxbl-message-box-body {
    white-space: pre-line;
}

/* Animación de entrada del diálogo */
.dxbl-modal.show .dxbl-message-box {
    animation: dialogSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dialogSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Overlay del diálogo */
.dxbl-modal-backdrop {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(6px);
}

.or-text {
    padding: 0 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6c757d !important;
    background: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Enlaces del formulario */
.links-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
    font-size: 14px !important;
}

.links-container span {
    color: #6c757d !important;
    font-weight: 400 !important;
}

.links-container a {
    color: #764ba2 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.links-container a:hover {
    color: #6a4190 !important;
    text-decoration: none !important;
}

.links-container a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 50%;
    background: #764ba2;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.links-container a:hover::after {
    width: 100%;
}

.dot {
    width: 3px !important;
    height: 3px !important;
    background: #adb5bd !important;
    border-radius: 50% !important;
    margin: 0 4px !important;
}

/* Mensajes de estado y error */
.alert-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    color: #dc3545 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: 500 !important;
}

.validation-message {
    color: #dc3545 !important;
    font-size: 13px !important;
    margin-top: 4px !important;
    font-weight: 500 !important;
}

/* Responsive Design para Login */
@media (max-width: 768px) {
    .login-page .main-content {
        padding: 15px !important;
        min-height: 100vh !important;
    }

    .login-page .block-content {
        padding: 30px 25px !important;
        margin: 0 !important;
        border-radius: 16px !important;
        max-width: 100% !important;
    }

    .title-header-text {
        font-size: 2rem !important;
    }

    .title-content-text {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .login-page .main-content {
        padding: 10px !important;
    }

    .login-page .block-content {
        padding: 25px 20px !important;
        border-radius: 12px !important;
    }

    .title-header-text {
        font-size: 1.8rem !important;
    }

    .dx-texteditor-input {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }

    .dx-button.w-100 {
        height: 45px !important;
        font-size: 14px !important;
    }
}

/* Animaciones adicionales para mejorar UX */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.links-container {
    animation: fadeIn 1s ease 0.3s both;
}

.or {
    animation: fadeIn 1s ease 0.2s both;
}

/* External Login Provider Buttons (si existen) */
.btn-social {
    border-radius: 10px !important;
    padding: 12px 20px !important;
    font-weight: 500 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 10px !important;
}

.btn-social:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}