:root {
    --primary-color: #ff6b35;
    --primary-dark: #ff8c5a;
    --accent-blue: #06b6d4;
    --dark-bg: #0a0f14;
    --darker-bg: #0d1318;
    --card-bg: #121a22;
    --text-primary: #f0f4f8;
    --text-secondary: #7a8c9a;
    --input-bg: #121a22;
    --border-color: #1e2d3a;
    --success-color: #22c55e;
    --danger-color: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Left Section with Video */
.left-section {
    position: relative;
    overflow: hidden;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Dark Overlay on Video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 19, 24, 0.85) 0%, rgba(10, 15, 20, 0.665) 100%);
    z-index: 2;
}

/* Logo Brand on top of video */
.logo-brand {
    position: relative;
    z-index: 3;
    text-align: center;
}

.brand-name {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.brand-accent {
    color: var(--primary-color);
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--accent-blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Right Section */
.right-section {
    background: var(--dark-bg);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-card {
    background: transparent;
    padding: 0;
}

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

.brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.brand-icon i {
    font-size: 2.5rem;
    color: white;
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

/* Form */
.login-form {
    margin-top: 2rem;
}

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

.form-control {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.password-toggle i {
    font-size: 1.2rem;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Button */
.btn-login {
    width: 100%;
    background: #ff6b35;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #ffffff;
    margin-top: 1.5rem;
}

.btn-login:hover {
    background: #ff8c5a;
    transform: translateY(-1px);
}

.btn-login:active {
    background: #ff8c5a;
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Links */
.form-links {
    margin-top: 1.5rem;
    text-align: center;
}

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

.forgot-link:hover {
    opacity: 0.8;
}

/* Register Section */
.register-section {
    margin-top: 1.5rem;
    text-align: center;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.register-link:hover {
    opacity: 0.8;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-color);
    border-left: 3px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    border-left: 3px solid var(--danger-color);
}

.alert-warning {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
    .login-container {
        max-width: 100%;
        padding: 2rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .brand-name {
        font-size: 4rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: 3rem;
    }
    
    .brand-icon {
        width: 60px;
        height: 60px;
    }
    
    .brand-icon i {
        font-size: 2rem;
    }
}

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

.login-card {
    animation: fadeIn 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--card-bg);
}