:root {
    --primary-color: #f3a72c;
    --primary-dark: #e09612;
    --primary-light: #f5b84d;
    --secondary-color: #1a1a2e;
    --text-dark: #2d3748;
    --text-light: #718096;
    --text-white: #ffffff;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --success: #48bb78;
    --error: #f56565;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login Wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* Left Side - Brand Section */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d44 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 167, 44, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.brand-content {
    max-width: 500px;
    position: relative;
    z-index: 1;
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--primary-color);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.brand-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.feature i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Right Side - Login Form */
.login-right {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 450px;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Form Styles */
.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 167, 44, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-light);
}

.checkbox-label input {
    width: auto;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-btn i {
    transition: transform 0.3s;
}

.login-btn:hover i {
    transform: translateX(5px);
}

/* Error Message */
.error-message {
    background: #fed7d7;
    color: var(--error);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    border-left: 4px solid var(--error);
}

.error-message i {
    font-size: 1rem;
}

/* Demo Credentials */
.demo-credentials {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-header i {
    color: var(--primary-color);
}

.demo-info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.demo-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.demo-label {
    color: var(--text-light);
}

.demo-item code {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: 'Monaco', monospace;
    font-size: 0.75rem;
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-left {
        padding: 2rem;
        min-height: 300px;
    }
    
    .brand-content {
        text-align: center;
    }
    
    .brand-logo {
        justify-content: center;
    }
    
    .brand-features {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .login-right {
        padding: 2rem 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.75rem;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .brand-description {
        font-size: 0.875rem;
    }
    
    .demo-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .brand-logo .logo-icon {
        font-size: 1.75rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .brand-title {
        font-size: 1.25rem;
    }
    
    .brand-description {
        font-size: 0.8rem;
    }
    
    .login-right {
        padding: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .login-btn {
        padding: 0.875rem;
    }
}

/* Touch optimizations */
@media (hover: none) {
    .login-btn:hover {
        transform: none;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on mobile */
    }
}