/* dist/css/custom.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --error: #ef4444;
    --success: #10b981;
}

/* Global Reset */
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: var(--bg-gradient);
    min-height: 100vh;
    margin: 0;
}

/* Reusable Glassmorphism Card (Light Version) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-page {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.2));
    margin-bottom: 1.5rem;
}

.login-title {
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #4f46e5, #9333ea);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.form-control {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 12px !important;
    color: var(--text-main) !important;
    padding: 0.75rem 1rem !important;
    height: auto !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    outline: none;
}

/* Specialized Login Button Utility */
.btn-login {
    background: var(--primary) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.875rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

.btn-login:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Global Button Refinement (Allowing Local Padding/Width) */
.btn-primary {
    background: var(--primary) ;
    border: none ;
    transition: all 0.3s ease ;
}

.btn-primary:hover {
    background: var(--primary-hover) ;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.alert-modern {
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid transparent;
}

.alert-danger-modern {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

#loading-overlay-modern {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner-modern {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
