/* ===============================
   CUSTOM LOGIN & DASHBOARD DESIGN
   =============================== */

/* Animated gradient background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-bg-animated {
    background: linear-gradient(-45deg, #1e1b4b, #312e81, #0f766e, #0d9488);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.login-bg-animated::before,
.login-bg-animated::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.login-bg-animated::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.login-bg-animated::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
}

/* Glass morphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3.5rem 4.5rem;
    width: 100%;
    max-width: 600px;
    animation: fadeSlideUp 0.6s ease-out;
}

@media (max-width: 576px) {
    .glass-card {
        padding: 1.5rem 1.5rem;
        border-radius: 16px;
    }
}

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

/* Logo area */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.login-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e1b4b;
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

/* Input fields */
.login-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s;
    background: #f9fafb;
    outline: none;
}

.login-input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.login-input-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.3rem;
    z-index: 2;
}

/* Login button */
.login-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #6366f1, #0d9488);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn::after {
    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;
}

.login-btn:hover::after {
    left: 100%;
}

/* Language selector */
.login-lang-select {
    padding: 0.4rem 0.75rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
}

.login-lang-select:hover {
    background: rgba(255,255,255,0.2);
}

.login-lang-select option {
    background: #1e1b4b;
    color: #fff;
}

/* Remember me */
.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6b7280;
}

.login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    border-radius: 4px;
    cursor: pointer;
}

/* Forgot password link */
.forgot-link {
    font-size: 0.875rem;
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Separator */
.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: #d1d5db;
    font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Welcome text on login */
.welcome-text-login {
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-text-login h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.welcome-text-login p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===== DASHBOARD HEADER ===== */
.dashboard-header-premium {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #0f766e) !important;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 3rem 3rem;
    padding: 1.5rem 2rem 3rem !important;
    margin-bottom: -1.5rem;
}

.dashboard-header-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-header-premium::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.dash-welcome {
    position: relative;
    z-index: 1;
}

.dash-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dash-welcome p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* Stat cards */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.15rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
