:root {
    --primary: #3b7ddd;
    --primary-rgb: 59, 125, 221;
    --secondary: #6c757d;
    --success: #1cbb8c;
    --info: #17a2b8;
    --warning: #fcb92c;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --hr-color: #4e73df;
    --payroll-color: #36b9cc;
    /* Updated to blue theme colors */
    --bg-gradient-1: #4e73df;  /* HR Blue */
    --bg-gradient-2: #3b7ddd;  /* Primary Blue */
    --bg-gradient-3: #5a8cff;  /* Lighter Blue */
    --bg-gradient-4: #2b6cb0;  /* Darker Blue */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100vh;
    position: relative;
}

/* Animation Container */
.animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Gradient Background - Updated to blue theme */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3), var(--bg-gradient-4));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.9;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particles - Updated to blue tones */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Circles - Updated to blue tones */
.circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: pulseCircle 8s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: 10%;
    animation-delay: 1s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: -75px;
    animation-delay: 2s;
}

.circle-4 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: -125px;
    animation-delay: 3s;
}

@keyframes pulseCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Floating Shapes - Updated to blue tones */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 80%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    animation-delay: 5s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 20%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation-delay: 10s;
}

.shape-4 {
    width: 90px;
    height: 90px;
    top: 20%;
    left: 70%;
    clip-path: circle(50% at 50% 50%);
    animation-delay: 15s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(30px) rotate(270deg);
    }
}

/* Login Container */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    animation: cardEntrance 0.8s ease-out;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-left {
    background: linear-gradient(to right, var(--hr-color), var(--payroll-color));
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.system-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.system-description {
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-weight: 600;
}

.login-form {
    padding: 2.5rem;
    position: relative;
}

.form-control {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.3rem rgba(59, 125, 221, 0.2);
    transform: translateY(-2px);
}

.input-group-text {
    background: transparent;
    border-radius: 8px 0 0 8px;
}

.btn-login {
    background: linear-gradient(to right, var(--hr-color), var(--payroll-color));
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 125, 221, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(59, 125, 221, 0.4);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(59, 125, 221, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 70px;
    height: 70px;
    animation: orbitRotate 15s linear infinite;
}

.orbit-2 {
    width: 50px;
    height: 50px;
    animation: orbitRotate 12s linear infinite reverse;
}

.orbit-3 {
    width: 30px;
    height: 30px;
    animation: orbitRotate 8s linear infinite;
}

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {

    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.logo-icon {
    font-size: 3rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .login-left {
        display: none;
    }
    
    .login-card {
        margin: 1rem;
    }
    
    .login-form {
        padding: 1.5rem;
    }
}