/* src/assets/css/custom.css */
:root {
    /* Theme Light */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-accent: #06b6d4;
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    
    --grad-main: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow-main: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.dark {
    /* Theme Dark */
    --color-bg: #0f172a;
    --color-card: #1e293b;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
    
    --shadow-main: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: all 0.3s ease;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.dark {
    color-scheme: dark;
}

/* Premium Header */
.header {
    background: var(--color-card);
    color: var(--color-text);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--color-border);
}

.dark .header {
    background: var(--color-card);
}

.header a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

/* Fix for dropdown links visibility */
.header .card a {
    color: var(--color-text) !important;
    text-decoration: none !important;
}

.header .card a:hover {
    background-color: var(--color-bg);
    transform: translateX(4px);
}

/* Glassmorphism Card */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
    background: var(--grad-main);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    filter: brightness(1.1);
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 0.8rem;
    background: var(--color-card);
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    ring: 2px solid rgba(37, 99, 235, 0.2);
}

/* Utilities */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.1), transparent);
}

.dark .auth-container {
    background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.2), transparent);
}

.auth-card {
    width: 100%;
    max-width: 480px;
}

/* Auth switcher */
.hidden-form {
    display: none;
    opacity: 0;
}

.active-form {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

/* Advanced Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0px rgba(6, 182, 212, 0.2); }
    50% { box-shadow: 0 0 30px rgba(6, 182, 212, 0.5); }
    100% { box-shadow: 0 0 0px rgba(6, 182, 212, 0.2); }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 8s ease-in-out infinite 1s; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-slide-up { animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.animate-reveal { animation: reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

/* Improved Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.text-center { text-align: center; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }

/* Dark mode toggle button */
#darkToggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

#darkToggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}
/* Extra UI Helpers */
.shadow-blue {
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.dark .shadow-blue {
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.4);
}

.shadow-xl {
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.2);
}

.dark .shadow-xl {
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.6);
}
