﻿
/* Estilos Premium unificados de tu contenedor de Login */
.login-container-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999999 !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

.login-card-premium {
    background: rgba(30, 41, 59, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 45px 35px !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    max-width: 420px !important;
    width: 100% !important;
    color: #ffffff !important;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    height: 65px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.3));
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-label-custom {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-custom {
    width: 100% !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

    .form-input-custom:focus {
        outline: none !important;
        border-color: #38bdf8 !important;
        background-color: rgba(15, 23, 42, 0.8) !important;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
    }

.form-check-custom {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #94a3b8;
}

    .form-check-custom input {
        margin-right: 10px;
        width: 16px;
        height: 16px;
        accent-color: #ef4444;
    }

.btn-submit-premium {
    width: 100% !important;
    background: linear-gradient(90deg, #dc3545 0%, #ef4444 100%) !important;
    border: none !important;
    color: white !important;
    padding: 14px !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

    .btn-submit-premium:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4) !important;
        filter: brightness(1.1);
    }

.login-footer-links {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

    .login-footer-links a {
        color: #38bdf8 !important;
        text-decoration: none;
        font-weight: 500;
    }






/* ═══════════════════════════════════════════════════════════════
           REGISTER PAGE — Dark Premium
           ═══════════════════════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1117 0%, #1a1d24 50%, #0f1117 100%);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #181b21;
    border: 1px solid #252a33;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

    .auth-brand img {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        margin-bottom: 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    .auth-brand h1 {
        color: #f1f5f9;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 6px 0;
    }

    .auth-brand p {
        color: #525a6b;
        font-size: 0.9rem;
        margin: 0;
    }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #374151;
    font-size: 0.8rem;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #252a33;
    }

/* Form inputs dark */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-form input,
.auth-form select {
    width: 100%;
    background: #1a1d23;
    border: 1px solid #2a2f3a;
    border-radius: 12px;
    padding: 12px 16px;
    color: #f1f5f9;
    font-size: 0.9rem;
    outline: none;
    border-radius:59px;
    transition: all 0.2s ease;
}

    .auth-form input::placeholder {
        color: #4b5563;
    }

    .auth-form input:focus,
    .auth-form select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .auth-form input.is-invalid {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }

.auth-form .validation-message {
    color: #f87171;
    font-size: 0.78rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .auth-form .validation-message::before {
        content: '\f06a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.7rem;
    }

/* Button */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    margin-top: 8px;
}

    .auth-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
    }

    .auth-btn:active {
        transform: scale(0.98);
    }

    .auth-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 0.85rem;
}

    .auth-footer a {
        color: #60a5fa;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .auth-footer a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }

/* Alert */
.auth-alert {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: #f87171;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .auth-alert i {
        font-size: 1rem;
    }

/* Spinner */
.auth-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ===== PREMIUM ORDER FORM STYLES ===== */
/* ===== COMPACT PREMIUM ORDER FORM ===== */
.order-form-container {
    background: linear-gradient(145deg, #0b1120 0%, #151e32 100%);
    min-height: 100vh;
    padding: 1rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.form-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* Header compacto */
.form-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
}

    .form-header::before {
        content: '';
        position: absolute;
        top: -60%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
        border-radius: 50%;
    }

    .form-header h2 {
        color: white;
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.3px;
        position: relative;
        z-index: 1;
    }

    .form-header .subtitle {
        color: rgba(255,255,255,0.6);
        font-size: 0.8rem;
        position: relative;
        z-index: 1;
    }

/* Body compacto */
.form-body {
    padding: 1.25rem 2rem;
}

/* Grid de 12 columnas, gap reducido */
.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.75rem 1.25rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .form-group.col-2 {
        grid-column: span 2;
    }

    .form-group.col-3 {
        grid-column: span 3;
    }

    .form-group.col-4 {
        grid-column: span 4;
    }

    .form-group.col-5 {
        grid-column: span 5;
    }

    .form-group.col-6 {
        grid-column: span 6;
    }

@media (max-width: 1200px) {
    .form-group.col-2 {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .form-group.col-2, .form-group.col-3, .form-group.col-4,
    .form-group.col-5, .form-group.col-6 {
        grid-column: span 12;
    }

    .form-body {
        padding: 1rem;
    }
}

/* Labels pequeños y limpios */
.form-label {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

/* Inputs delgados (36px altura) */
.form-input {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    color: #f1f5f9 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    line-height: 1 !important;
}

    .form-input:focus,
    .form-input:focus-within {
        outline: none !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12) !important;
        background: rgba(15, 23, 42, 0.7) !important;
    }

    .form-input::placeholder {
        color: #475569 !important;
        font-size: 0.8rem !important;
    }

    /* Order# readonly verde */
    .form-input.readonly {
        background: rgba(16, 185, 129, 0.06) !important;
        border-color: rgba(16, 185, 129, 0.15) !important;
        color: #34d399 !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }

/* Iconos en inputs */
.input-with-icon {
    position: relative;
}

    .input-with-icon ::deep input,
    .input-with-icon .form-input {
        padding-left: 2.25rem !important;
    }

.input-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}

/* Select arrow */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.6rem center !important;
    padding-right: 2rem !important;
}

/* Manual number section */
.manual-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%);
    border: 1px dashed rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: end;
    gap: 0.75rem;
}

/* Botones compactos */
.btn {
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    height: 36px !important;
    white-space: nowrap !important;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35) !important;
    }

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
    padding: 0.5rem 1.75rem !important;
    font-size: 0.875rem !important;
}

    .btn-success:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
    }

    .btn-success:disabled {
        opacity: 0.4 !important;
        cursor: not-allowed !important;
    }

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25) !important;
    padding: 0.5rem 1.75rem !important;
    font-size: 0.875rem !important;
}

    .btn-danger:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
    }

/* Actions alineados a la derecha */
.actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0;
}

/* Dividers y secciones */
.divider {
    grid-column: span 12;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.15), transparent);
    margin: 0.25rem 0;
}

.section-title {
    grid-column: span 12;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, rgba(148, 163, 184, 0.15), transparent);
    }

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 9999;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #94a3b8;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

/* ===== DEVEXPRESS OVERRIDES ===== */
::deep .dxbl-text-edit,
::deep .dxbl-spin-edit,
::deep .dxbl-combobox,
::deep .dxbl-date-edit {
    background: transparent !important;
    border: none !important;
}

    ::deep .dxbl-text-edit input,
    ::deep .dxbl-spin-edit input,
    ::deep .dxbl-combobox input,
    ::deep .dxbl-date-edit input {
        background: rgba(15, 23, 42, 0.5) !important;
        border: 1px solid rgba(148, 163, 184, 0.12) !important;
        border-radius: 8px !important;
        color: #f1f5f9 !important;
        padding: 0.5rem 0.75rem !important;
        height: 36px !important;
        min-height: 36px !important;
        font-size: 0.875rem !important;
    }

        ::deep .dxbl-text-edit input:focus,
        ::deep .dxbl-spin-edit input:focus,
        ::deep .dxbl-combobox input:focus,
        ::deep .dxbl-date-edit input:focus {
            border-color: #3b82f6 !important;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12) !important;
        }

::deep .dxbl-list-box-item {
    color: #f1f5f9 !important;
}

    ::deep .dxbl-list-box-item.dxbl-list-box-item-selected {
        background: rgba(59, 130, 246, 0.2) !important;
    }

::deep .dxbl-popup-content {
    background: #1e293b !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 8px !important;
}

::deep .dxbl-combobox-dropdown-button {
    color: #94a3b8 !important;
}

::deep .dxbl-spin-edit-button {
    color: #94a3b8 !important;
}