/* ========================================================================
   LOLLY HQ - REVAMP ENHANCEMENTS FOR EXISTING ELEMENTS
   Modern styling that enhances existing classes without breaking functionality
   ======================================================================== */

/* ========================================================================
   LOGIN FORM MODERNIZATION
   ======================================================================== */
.vert-middle {
    min-height: 100vh;
    /*display: flex;
    align-items: center;
    justify-content: center;*/
    /*background: linear-gradient(135deg, #ffb300 0%, #fff 100%);*/
    background-image: url(images/RobotHeadWithIntegrationLines.png);
    padding: var(--space-6, 24px);
    position: relative;
    overflow: hidden;
    background-position: left top;
    background-repeat: round;
}

    ./*vert-middle::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: linear-gradient(135deg, #ffb300 0%, #fff 100%);
        top: -200px;
        left: -200px;*/
        /*animation: floatGlow 8s ease-in-out infinite alternate;*/
    /*}*/

.vert-middle::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 105, 135, 0.15) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* Modern Login Form Container */
#loginForm.formWrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#loginForm h1 {
    color: #F78E1E !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    letter-spacing: -0.02em;
}

#loginForm p {
    text-align: center;
    color: #525252;
    font-size: 1rem;
    margin-bottom: 32px;
}

/* Fieldset Modernization */
#loginForm fieldset {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

#loginForm fieldset legend {
    display: none;
}

/* Form Labels */
#loginForm .editor-label label {
    display: block;
    margin-bottom: 8px;
    color: #404040;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

/* Form Inputs - Modern Style */
#loginForm input[type="text"],
#loginForm input[type="password"],
#loginForm input[type="email"],
#loginForm .ui-widget-content {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    color: #262626 !important;
    background: #FAFAFA !important;
    border: 2px solid #E8E8E8 !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: var(--font-primary) !important;
    box-shadow: none !important;
}

#loginForm input[type="text"]:focus,
#loginForm input[type="password"]:focus,
#loginForm input[type="email"]:focus,
#loginForm .ui-widget-content:focus {
    outline: none !important;
    border-color: #F78E1E !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(247, 142, 30, 0.1) !important;
}

#loginForm input[type="text"]::placeholder,
#loginForm input[type="password"]::placeholder {
    color: #A3A3A3;
}

/* Submit Button - Premium Style */
#loginForm input[type="submit"],
#loginForm #btnSubmit {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #F78E1E 0%, #D66E00 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow:
        0 4px 14px rgba(247, 142, 30, 0.4),
        0 0 0 0 rgba(247, 142, 30, 0) !important;
    text-transform: none !important;
    letter-spacing: 0.02em;
}

#loginForm input[type="submit"]:hover,
#loginForm #btnSubmit:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 8px 20px rgba(247, 142, 30, 0.5),
        0 0 0 4px rgba(247, 142, 30, 0.1) !important;
    background: linear-gradient(135deg, #FF9E2E 0%, #E67E0E 100%) !important;
}

#loginForm input[type="submit"]:active,
#loginForm #btnSubmit:active {
    transform: translateY(0) !important;
}

/* Reset Password Link */
#loginForm a[href*='ResetPassword'] {
    display: inline-block;
    margin-top: 16px;
    color: #006987;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

#loginForm a[href*='ResetPassword']:hover {
    color: #F78E1E;
    text-decoration: underline;
}

/* Azure Login Images */
#loginForm img[alt="Login"],
#loginForm img[alt="Compass Login"] {
    max-width: 200px;
    height: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 16px;
}

#loginForm a:hover img[alt="Login"],
#loginForm a:hover img[alt="Compass Login"] {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* MFA QR Code Display */
.MFAQRDisplay {
    text-align: center;
    margin: 24px 0;
    padding: 24px;
    background: #FAFAFA;
    border-radius: 16px;
    border: 2px solid #E8E8E8;
}

.MFAQRDisplay img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================================================
   PANEL CONTAINERS
   ======================================================================== */
.panel-cont {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease-out;
}

.panel-cont p {
    /*font-size: 1.125rem;
    line-height: 1.7;*/
    /*color: #404040;*/
}

/* ========================================================================
   DIALOG MODERNIZATION
   ======================================================================== */
.homeDialog {
    text-align: center;
    padding: 32px;
}

.homeDialog p {
    font-size: 1.125rem;
    color: #525252;
    margin-bottom: 24px;
}

.homeDialog img {
    max-width: 48px;
    height: auto;
}

/* ========================================================================
   DASHBOARD STYLES
   ======================================================================== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 5px;
}

.dashboard-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #E8E8E8;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #F78E1E 0%, #006987 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    color: #737373;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #F2F2F2;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F78E1E 0%, #006987 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #F78E1E;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #10B981;
}

.stat-change.negative {
    color: #EF4444;
}

/* ========================================================================
   FOOTER MODERNIZATION
   ======================================================================== */
.footer-main,
div[style*="height:50px"] {
    padding: 32px 0 !important;
    background: transparent !important;
    text-align: center !important;
    color: #000 !important;
    font-size: 0.875rem !important;
    height: auto !important;
}

/* ========================================================================
   VALIDATION & ERROR MESSAGES
   ======================================================================== */
.field-validation-error {
    display: block;
    margin-top: 8px;
    color: #EF4444;
    font-size: 0.875rem;
    font-weight: 500;
}

.validation-summary-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #EF4444;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    color: #DC2626;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary-errors li {
    margin: 4px 0;
}

/* ========================================================================
   HELP CONTROLS
   ======================================================================== */
.help-control {
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #737373;
    font-style: italic;
}

/* ========================================================================
   UI WIDGET OVERRIDES
   ======================================================================== */
.ui-widget {
    font-family: var(--font-primary) !important;
}

.ui-corner-all {
    border-radius: 12px !important;
}

/* ========================================================================
   LOADING ANIMATION
   ======================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body.loaded {
    animation: fadeIn 0.4s ease-out;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loader::after {
    content: '';
    width: 60px;
    height: 60px;
    border: 4px solid rgba(247, 142, 30, 0.2);
    border-top-color: #F78E1E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================================================
   RESPONSIVE ADJUSTMENTS
   ======================================================================== */
@media (max-width: 768px) {
    #loginForm.formWrapper {
        padding: 24px 16px;
        border-radius: 20px;
    }

    #loginForm h1 {
        font-size: 1.625rem !important;
    }

    .panel-cont {
        padding: 16px;
        margin: 16px 5px;
    }

    .dashboard-title {
        font-size: 1.875rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .vert-middle {
        padding: 12px;
    }

    #loginForm.formWrapper {
        padding: 20px 16px;
    }

    #loginForm h1 {
        font-size: 1.375rem !important;
    }

    #loginForm input[type="submit"],
    #loginForm #btnSubmit {
        padding: 12px 16px !important;
    }
}

/* ========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================================================== */
*:focus-visible {
    outline: 3px solid #F78E1E;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #loginForm.formWrapper {
        border: 3px solid #000000;
    }

    #loginForm input[type="text"],
    #loginForm input[type="password"],
    #loginForm input[type="email"] {
        border: 2px solid #000000 !important;
    }
}
