/* Glassmorphism Utilities */
.glass-panel {
    background: #121016; /* Replaces rgba(17, 25, 40, 0.75) */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505; /* Replaces #0f172a */
}

::-webkit-scrollbar-thumb {
    background: #1e1b24; /* Replaces #334155 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb; /* Replaces #475569 with Brand Purple */
}

/* Input Autofill Fix for Dark Mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #121016 inset; /* Replaces #1e293b */
    transition: background-color 5000s ease-in-out 0s;
}

/* Smooth appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Premium loader during auth check */
.auth-loading {
    pointer-events: none;
}

.auth-loading::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 99999;
}

.auth-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top-color: #2563eb;
    animation: spin 1s linear infinite;
    z-index: 100000;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}