/**
 * STREAM Modern Login Page Styles
 * Split-screen design with animated Mapbox background
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Main container - split screen layout */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Left side - Mapbox animated globe */
.login-map-section {
    flex: 1;
    position: relative;
    background: #0a0e27;
    overflow: hidden;
}

#mapbox-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Hide Mapbox watermark and attribution */
#mapbox-container .mapboxgl-ctrl-bottom-left,
#mapbox-container .mapboxgl-ctrl-bottom-right,
#mapbox-container .mapboxgl-ctrl-attrib,
#mapbox-container .mapboxgl-ctrl-logo,
#mapbox-container .mapboxgl-compact {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Brand overlay on map */
.brand-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    max-width: 90%;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
}

.brand-logo-image {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(26, 125, 197, 0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(26, 125, 197, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(26, 125, 197, 0.7));
    }
}

.brand-logo-large {
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 0 40px rgba(26, 125, 197, 0.6),
        0 0 80px rgba(26, 125, 197, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 15px;
    margin: 0;
    line-height: 1;
    animation: brandPulse 3s ease-in-out infinite;
}

.brand-logo-small {
    font-size: 50px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 
        0 0 30px rgba(26, 125, 197, 0.5),
        0 0 60px rgba(26, 125, 197, 0.3),
        0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 8px;
    margin: 5px 0 0 0;
    line-height: 1;
    animation: brandPulse 3s ease-in-out infinite;
}

.brand-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0;
    letter-spacing: 3px;
    text-transform: capitalize;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

@keyframes brandPulse {
    0%, 100% {
        text-shadow: 
            0 0 40px rgba(26, 125, 197, 0.6),
            0 0 80px rgba(26, 125, 197, 0.4),
            0 4px 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 
            0 0 50px rgba(26, 125, 197, 0.8),
            0 0 100px rgba(26, 125, 197, 0.5),
            0 4px 25px rgba(0, 0, 0, 0.6);
    }
}

/* Diagonal separator */
.diagonal-separator {
    position: absolute;
    right: 0;
    top: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to right, transparent, #1a1d2e 50%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%);
    z-index: 5;
}

/* Right side - Login form */
.login-form-section {
    width: 450px;
    background: #1a1d2e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

/* Settings menu and dropdown */
.settings-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 100;
}

.settings-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-icon:hover {
    color: #1a7dc5;
    transform: rotate(90deg);
}

.settings-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(26, 29, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.settings-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.view-earth-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1a7dc5 0%, #1569a8 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.view-earth-btn:hover {
    background: linear-gradient(135deg, #2691d9 0%, #1a7dc5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 125, 197, 0.4);
}

.view-earth-btn i {
    font-size: 16px;
}

/* Login form container */
.login-form-container {
    width: 100%;
    max-width: 400px;
}

/* Form heading */
.login-heading {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Form styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 15px 18px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #1a7dc5;
    box-shadow: 0 0 0 3px rgba(26, 125, 197, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Password input wrapper with toggle button */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.password-toggle-btn:hover {
    color: #1a7dc5;
    background: rgba(26, 125, 197, 0.1);
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle-btn i {
    font-size: 16px;
    pointer-events: none;
}

/* Forgot password link */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.forgot-password-link {
    font-size: 13px;
    color: #1a7dc5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.forgot-password-link:hover {
    color: #2691d9;
    text-decoration: underline;
}

/* Sign in button */
.btn-signin {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    background: linear-gradient(135deg, #1a7dc5 0%, #1569a8 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(26, 125, 197, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-signin:hover {
    background: linear-gradient(135deg, #2691d9 0%, #1a7dc5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 125, 197, 0.4);
}

.btn-signin:active {
    transform: translateY(0);
}

.btn-signin:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-spinner i {
    font-size: 16px;
}

/* Form validation error messages */
.fv-plugins-message-container {
    margin-top: 8px;
}

.fv-help-block {
    color: #ff6b6b !important;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}

.invalid-feedback {
    color: #ff6b6b !important;
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

/* Hide FormValidation icon animations */
.fv-plugins-icon {
    display: none !important;
}

.btn-signin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-signin:hover::before {
    left: 100%;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 125, 197, 0.4);
}

.btn-signin:active {
    transform: translateY(0);
}

/* Loading state */
.btn-signin .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.btn-signin.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Globe View Controls Overlay */
.globe-controls-overlay {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: rgba(26, 29, 46, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    padding: 30px;
    overflow-y: auto;
}

.globe-controls-overlay.active {
    right: 0;
}

.globe-controls-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.globe-controls-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.globe-controls-title i {
    color: #1a7dc5;
    font-size: 28px;
}

.back-to-login-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.back-to-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #1a7dc5;
    transform: translateX(-3px);
}

.back-to-login-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-to-login-btn:hover i {
    transform: translateX(-3px);
}

.globe-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.controls-section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.controls-section-title:first-child {
    margin-top: 0;
}

/* Style Selector Buttons */
.style-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.style-btn {
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.style-btn i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.style-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(26, 125, 197, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.style-btn:hover i {
    color: #1a7dc5;
}

.style-btn.active {
    background: linear-gradient(135deg, #1a7dc5 0%, #1569a8 100%);
    border-color: #1a7dc5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26, 125, 197, 0.3);
}

.style-btn.active i {
    color: #ffffff;
}

/* Dark Mode Toggle Styles */
.toggle-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.toggle-control:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(26, 125, 197, 0.3);
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 2px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-slider {
    background: linear-gradient(135deg, #1a7dc5 0%, #1569a8 100%);
    border-color: #1a7dc5;
}

.toggle-checkbox:checked + .toggle-slider::before {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(26, 125, 197, 0.4);
}

.toggle-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-text i {
    color: #1a7dc5;
    font-size: 18px;
}

.toggle-checkbox:checked ~ .toggle-text {
    color: #ffffff;
}

/* Globe fullscreen mode transitions */
.login-container.globe-fullscreen .login-map-section {
    flex: 1;
    width: 100%;
}

.login-container.globe-fullscreen .login-form-section {
    width: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
}

.login-container.globe-fullscreen .brand-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.login-container.globe-fullscreen .diagonal-separator {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Smooth transitions for sections */
.login-map-section,
.login-form-section {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-overlay {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Mapbox container interactive mode */
.login-container.globe-fullscreen #mapbox-container {
    cursor: grab;
}

.login-container.globe-fullscreen #mapbox-container:active {
    cursor: grabbing;
}

/* Responsive design */

/* 4K Resolution (3840px+) - Larger login form */
@media (min-width: 3840px) {
    .login-form-section {
        width: 700px;
        padding: 80px 70px;
    }
    
    .login-title {
        font-size: 38px;
    }
    
    .login-subtitle {
        font-size: 20px;
    }
    
    .form-label {
        font-size: 18px;
    }
    
    .form-input {
        padding: 20px 24px;
        font-size: 20px;
        border-radius: 10px;
    }
    
    .btn-signin {
        padding: 22px;
        font-size: 20px;
    }
    
    .forgot-password-link {
        font-size: 18px;
    }
    
    .brand-logo-large {
        font-size: 180px;
    }
    
    .brand-logo-small {
        font-size: 75px;
    }
    
    .brand-logo-image {
        height: 150px;
    }
    
    .brand-subtitle {
        font-size: 24px;
    }
}

/* 1440p Resolution (2560px+) - Slightly larger */
@media (min-width: 2560px) and (max-width: 3839px) {
    .login-form-section {
        width: 550px;
        padding: 60px 55px;
    }
    
    .login-title {
        font-size: 32px;
    }
    
    .login-subtitle {
        font-size: 17px;
    }
    
    .form-label {
        font-size: 15px;
    }
    
    .form-input {
        padding: 17px 20px;
        font-size: 17px;
    }
    
    .btn-signin {
        padding: 18px;
        font-size: 17px;
    }
    
    .brand-logo-large {
        font-size: 150px;
    }
    
    .brand-logo-small {
        font-size: 60px;
    }
    
    .brand-logo-image {
        height: 120px;
    }
    
    .brand-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    .brand-logo-large {
        font-size: 90px;
    }
    
    .brand-logo-small {
        font-size: 36px;
    }
    
    .brand-logo-image {
        height: 80px;
    }
    
    .brand-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
}

@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }

    .login-map-section {
        height: 40vh;
    }

    .login-form-section {
        width: 100%;
        height: 60vh;
        padding: 40px 30px;
    }

    .brand-logo-large {
        font-size: 70px;
        letter-spacing: 10px;
    }
    
    .brand-logo-small {
        font-size: 28px;
        letter-spacing: 5px;
    }
    
    .brand-logo-image {
        height: 60px;
    }

    .brand-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .diagonal-separator {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-form-section {
        padding: 30px 20px;
    }

    .brand-logo-large {
        font-size: 50px;
        letter-spacing: 8px;
    }
    
    .brand-logo-small {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .brand-logo-image {
        height: 50px;
    }

    .brand-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .login-title {
        font-size: 24px;
    }

    .form-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .btn-signin {
        padding: 14px;
        font-size: 14px;
    }
}

/* Dark theme adjustments */
body.login-page {
    background: #1a1d2e;
}

/* Animation for page load */
.login-map-section,
.login-form-section {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Map loading overlay */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.5s ease;
}

.map-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(26, 125, 197, 0.2);
    border-top-color: #1a7dc5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error message styling */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

/* Success message styling */
.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51cf66;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

/* Form validation error messages */
.fv-plugins-message-container {
    margin-top: 5px;
}

.fv-help-block {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.fv-plugins-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.form-input.is-invalid {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}

/* Loading indicator for button */
.btn-signin .indicator-progress {
    display: none;
}

.btn-signin[data-kt-indicator="on"] .indicator-label {
    display: none;
}

.btn-signin[data-kt-indicator="on"] .indicator-progress {
    display: inline-block;
}

/* BlockUI overlay for login area */
.blockUI.blockMsg {
    background: rgba(26, 29, 46, 0.95) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 20px !important;
    border-radius: 8px !important;
}

.blockUI.blockMsg h5 {
    color: #ffffff !important;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* SweetAlert2 customization for dark theme */
.swal2-container {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.swal2-popup {
    background: #1a1d2e !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    margin: auto !important;
    max-width: 500px !important;
    width: 90% !important;
    text-align: center !important;
}

.swal2-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    margin-top: 10px !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

.swal2-html-container,
.swal2-content {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    padding: 0 20px !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.swal2-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    margin: 15px 0 !important;
}

.swal2-input:focus {
    border-color: #1a7dc5 !important;
    box-shadow: 0 0 0 3px rgba(26, 125, 197, 0.1) !important;
    outline: none !important;
}

.swal2-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* SweetAlert2 Buttons */
.swal2-actions {
    gap: 10px !important;
    margin-top: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #1a7dc5 0%, #1569a8 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 35px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    min-width: 100px !important;
    cursor: pointer !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(26, 125, 197, 0.4) !important;
    background: linear-gradient(135deg, #2691d9 0%, #1a7dc5 100%) !important;
}

.swal2-confirm:active {
    transform: translateY(0) !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* SweetAlert2 Icon */
.swal2-icon {
    border-color: #1a7dc5 !important;
    border-width: 4px !important;
    width: 80px !important;
    height: 80px !important;
    margin: 25px auto !important;
}

/* Error Icon - Animated Red X in Circle */
.swal2-icon.swal2-error {
    border-color: #ff6b6b !important;
    border-width: 4px !important;
    animation: scaleIn 0.5s ease-out !important;
}

.swal2-icon.swal2-error .swal2-icon-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-icon.swal2-error .swal2-x-mark {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right {
    display: block !important;
    position: absolute !important;
    height: 5px !important;
    width: 47px !important;
    background-color: #ff6b6b !important;
    border-radius: 2px !important;
    top: 37px !important;
}

.swal2-icon.swal2-error .swal2-x-mark-line-left {
    left: 17px !important;
    transform: rotate(45deg) !important;
    animation: animateXLeft 1.5s ease-out !important;
}

.swal2-icon.swal2-error .swal2-x-mark-line-right {
    right: 16px !important;
    transform: rotate(-45deg) !important;
    animation: animateXRight 1.5s ease-out !important;
}

/* X Mark Animations - Slower and smoother */
@keyframes animateXLeft {
    0% {
        left: 17px;
        top: 57px;
        width: 0;
        opacity: 0;
    }
    30% {
        left: 17px;
        top: 37px;
        width: 0;
        opacity: 1;
    }
    100% {
        left: 17px;
        top: 37px;
        width: 47px;
        opacity: 1;
    }
}

@keyframes animateXRight {
    0% {
        right: 16px;
        top: 57px;
        width: 0;
        opacity: 0;
    }
    30% {
        right: 16px;
        top: 37px;
        width: 0;
        opacity: 1;
    }
    100% {
        right: 16px;
        top: 37px;
        width: 47px;
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.swal2-icon.swal2-success {
    border-color: #51cf66 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #51cf66 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(81, 207, 102, 0.3) !important;
}

/* Modal Show/Hide Animations */
.swal2-show {
    animation: swal2-show 0.4s !important;
}

.swal2-hide {
    animation: swal2-hide 0.15s !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    45% {
        transform: scale(1.05);
        opacity: 1;
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

.swal2-backdrop-show {
    animation: swal2-backdrop-show 0.3s !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

.swal2-backdrop-hide {
    animation: swal2-backdrop-hide 0.15s !important;
}

@keyframes swal2-backdrop-show {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes swal2-backdrop-hide {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.swal2-icon-show {
    animation: swal2-icon-show 0.6s ease-out !important;
}

.swal2-icon-hide {
    animation: swal2-icon-hide 0.15s !important;
}

@keyframes swal2-icon-show {
    0% {
        transform: rotateX(100deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotateX(0deg) scale(1.1);
    }
    100% {
        transform: rotateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes swal2-icon-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Override default positioning */
body.swal2-shown > [aria-hidden="true"] {
    filter: blur(3px);
}

/* Force center positioning - override any conflicts */
body .swal2-container.swal2-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .swal2-container.swal2-center > .swal2-popup {
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Ensure modal shows above everything */
.swal2-container.swal2-shown {
    display: flex !important;
}

/* Critical: Override any parent container constraints */
.login-page .swal2-container {
    position: fixed !important;
    inset: 0 !important;
}

/* Fix any overflow or positioning issues from parent */
body.swal2-shown.login-page {
    overflow: hidden !important;
}

body.swal2-shown .login-container {
    filter: blur(2px);
}

/* Ensure proper stacking order */
.swal2-container,
.swal2-container * {
    position: relative !important;
}

.swal2-container {
    position: fixed !important;
}
