* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #000;
    color: #e8e8ee; 
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: bgShift 20s ease infinite;
    z-index: -1;
}

@keyframes bgShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Scan Lines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

.hidden { display: none !important; }

.auth-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 20px;
}

.auth-card { 
    background: rgba(26, 26, 36, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px; 
    padding: 48px 40px; 
    max-width: 420px; 
    width: 100%;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2),
                0 0 80px rgba(99, 102, 241, 0.1) inset;
    animation: cardEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.auth-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #6366f1);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s;
}

.auth-card:hover::before {
    opacity: 0.5;
}

.auth-card h1 { 
    font-size: 28px; 
    margin-bottom: 12px; 
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease infinite;
    background-size: 200% auto;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.auth-card p { color: #9898a8; margin-bottom: 32px; }

#login-form { display: flex; flex-direction: column; gap: 16px; }

input[type="password"] { 
    background: rgba(19, 19, 26, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px; 
    padding: 14px 16px; 
    color: #e8e8ee; 
    font-size: 15px;
    transition: all 0.3s;
}

input[type="password"]:focus { 
    outline: none; 
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary, .btn-secondary, .btn-trigger { 
    padding: 14px 24px; 
    border: none; 
    border-radius: 8px; 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s;
}

.btn-primary { 
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.error-message { color: #ef4444; font-size: 14px; margin-top: 12px; opacity: 0; }
.error-message.show { opacity: 1; }

.dashboard-header { 
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.btn-secondary { 
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #e8e8ee;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

.dashboard-main { max-width: 1400px; margin: 0 auto; padding: 48px 24px; }

.workflows-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 24px;
}

.workflow-card { 
    background: rgba(26, 26, 36, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px; 
    padding: 32px 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.workflow-card:hover { 
    transform: translateY(-8px) scale(1.02);
    border-color: #6366f1;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3),
                0 0 60px rgba(99, 102, 241, 0.1) inset;
}

.workflow-icon { 
    font-size: 48px; 
    margin-bottom: 16px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.workflow-card h3 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.workflow-card p { color: #9898a8; font-size: 14px; margin-bottom: 24px; }

.btn-trigger { 
    width: 100%; 
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-trigger:hover { 
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

.workflow-status { 
    margin-top: 12px; 
    font-size: 13px; 
    font-weight: 600; 
    text-align: center; 
    min-height: 20px;
}

.workflow-status.success { color: #10b981; }
.workflow-status.error { color: #ef4444; }

@media (max-width: 768px) { 
    .workflows-grid { grid-template-columns: 1fr; }
}