:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    box-shadow: 0 32px 64px -12px rgba(99, 102, 241, 0.4), 0 8px 20px rgba(139, 92, 246, 0.2);
    width: 100%;
    max-width: 480px;
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

/* Enhanced shine effect */
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #6366f1);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.logo {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.03em;
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fafbff;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.04);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(99, 102, 241, 0.1);
    outline: none;
}

.btn-login {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 12px;
    padding: 0.85rem;
    font-weight: 700;
    width: 100%;
    margin-top: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.4);
    background-position: right center;
}

.social-btn {
    border: 1px solid rgba(99, 102, 241, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    color: var(--text-light);
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.social-btn:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider::before {
    margin-right: 1em;
}
.divider::after {
    margin-left: 1em;
}

.demo-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
    border: 1px dashed #cbd5e1;
}

.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.85rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    border: 1px solid #fecaca;
}

/* Checkbox */
.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
    border-radius: 4px;
    border-color: #cbd5e1;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-label {
    font-weight: 500;
    color: var(--text-light);
}
