:root {
    /* Dark mode color scheme */
    --primary-color: #2A4365; /* Deep blue */
    --secondary-color: #4299E1; /* Lighter blue */
    --accent-color: #F6AD55; /* Orange accent */
    --dark-color: #1A202C; /* Dark gray/blue */
    --darker-color: #0D1117; /* Even darker for backgrounds */
    --light-color: #F7FAFC; /* Off-white */
    --text-color: #E2E8F0; /* Light gray for text in dark mode */
    --text-secondary: #A0AEC0; /* Lighter gray for secondary text */
    --error-color: #E53E3E; /* Red for errors */
    --success-color: #38A169; /* Green for success */
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --glow: 0 0 15px rgba(66, 153, 225, 0.5);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}

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

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

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

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.shape-1 {
    top: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.2) 0%, rgba(66, 153, 225, 0.1) 50%, rgba(66, 153, 225, 0) 70%);
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    bottom: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(246, 173, 85, 0.2) 0%, rgba(246, 173, 85, 0.1) 50%, rgba(246, 173, 85, 0) 70%);
    animation: float 20s ease-in-out infinite reverse;
}

.shape-3 {
    top: 40%;
    left: 60%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.2) 0%, rgba(56, 161, 105, 0.1) 50%, rgba(56, 161, 105, 0) 70%);
    animation: float 18s ease-in-out infinite 2s;
}

.shape-4 {
    top: 20%;
    right: 30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.1) 0%, rgba(229, 62, 62, 0.05) 50%, rgba(229, 62, 62, 0) 70%);
    animation: float 12s ease-in-out infinite 1s;
}

.container {
    display: flex;
    background-color: rgba(26, 32, 44, 0.8); /* Dark background with transparency */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out;
}

.landing-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.graphic-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.graphic-element {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 60%;
    left: 60%;
    animation: rotate 60s linear infinite;
    opacity: 0.6;
}

.graphic-element-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: rotate 80s linear infinite reverse;
    opacity: 0.4;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.logo {
    background-color: white;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 15px;
    box-shadow: var(--glow);
    animation: pulse 3s infinite;
}

.landing-section h1 {
    font-size: 28px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.landing-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.animate-text {
    background: linear-gradient(90deg, #fff, #f6ad55, #fff);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.landing-section p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.login-section {
    flex: 1;
    background-color: var(--dark-color);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.3s both;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    color: var(--light-color);
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
    color: var(--light-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.form-group input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.message.success {
    background-color: rgba(56, 161, 105, 0.2);
    border: 1px solid rgba(56, 161, 105, 0.3);
    color: #68D391;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 38px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--light-color);
}

.input-focus-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.form-group input:focus ~ .input-focus-effect {
    width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.remember-me label {
    margin-bottom: 0;
    font-size: 14px;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.login-btn.loading {
    position: relative;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: rotate 1s linear infinite;
    right: 15px;
}

.btn-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    opacity: 0;
    width: 0;
}

.login-btn:hover .btn-arrow {
    opacity: 1;
    width: 24px;
    transform: translateX(4px);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .landing-section, 
    .login-section {
        padding: 40px 20px;
    }
    
    .landing-section {
        text-align: center;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    .graphic-element, 
    .graphic-element-2 {
        opacity: 0.3;
    }
}
