:root {
    --primary: #6C63FF;
    --primary-dark: #5A52E0;
    --secondary: #FF6584;
    --accent: #00C9A7;
    --text: #2D3748;
    --text-light: #718096;
    --white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.95);
    --error-bg: #FFF0F0;
    --error-text: #E53E3E;
    --border: #E2E8F0;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.15) 0%, 
        rgba(255, 101, 132, 0.15) 50%, 
        rgba(0, 201, 167, 0.15) 100%);
    background-size: 200% 200%;
    animation: gradientMove 12s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Replace the existing .login-container and related styles with these: */

.login-container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto; /* This ensures horizontal centering */
}

.login-box {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    padding: 40px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto; /* Added for extra centering assurance */
}

/* Keep all other CSS the same as in the previous colorful gradient version */

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 98px;
    margin-right: 12px;
}

.company-name {
    font-size: 23px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 15px;
}

.auth-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    z-index: 1;
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.toggle-password {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary);
}

.remember-me label {
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}

.forgot-password {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.forgot-password:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button svg {
    margin-left: 8px;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.error-container {
    background-color: var(--error-bg);
    color: var(--error-text);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    border-left: 4px solid var(--error-text);
}

.error-container svg {
    margin-right: 8px;
    min-width: 16px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 24px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    
    .company-name {
        font-size: 18px;
    }
    
    .gradient-background {
        animation: gradientMove 16s ease infinite;
    }
}