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

:root {
    --primary: #F5A623;
    --primary-dark: #D4901F;
    --primary-light: #FEF3DC;
    --secondary: #1B2A4A;
    --success: #10B981;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    min-height: 100vh;
    color: var(--gray-800);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== LEFT SIDE (FORM) ===== */
.login-left {
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
}

.login-form-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.logo-badge {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-500);
    font-size: 15px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-success {
    background: #D1FAE5;
    color: var(--success);
    border: 1px solid var(--success);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-group input {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.link-primary {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: all 0.2s;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.4);
}

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

.btn-login.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    background: var(--white);
    border: 2px solid var(--gray-200);
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-social:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-social .fa-google {
    color: #DB4437;
}

.btn-social:hover .fa-google {
    color: var(--primary);
}

.btn-social .fa-facebook-f {
    color: #1877F2;
}

.btn-social:hover .fa-facebook-f {
    color: var(--primary);
}

.signup-link {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 16px;
}

.signup-link a {
    margin-left: 4px;
}

.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.login-footer p {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== RIGHT SIDE (VISUAL) ===== */
.login-right {
    background: linear-gradient(135deg, #1E2A4A 0%, #2A3B5F 50%, #FF6B35 150%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-right::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.login-right::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.login-visual {
    position: relative;
    z-index: 2;
    max-width: 500px;
    color: var(--white);
}

.floating-boxes {
    position: absolute;
    inset: -100px;
    pointer-events: none;
}

.float-box {
    position: absolute;
    font-size: 56px;
    animation: floatAnim 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.box-1 { top: 0%; left: 10%; animation-delay: 0s; }
.box-2 { top: 15%; right: 0%; animation-delay: 1s; }
.box-3 { bottom: 15%; left: 5%; animation-delay: 2s; }
.box-4 { top: 50%; right: 10%; animation-delay: 1.5s; }
.box-5 { bottom: 0%; right: 20%; animation-delay: 0.5s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.visual-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.visual-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.feature strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.feature span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.stats-mini {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-mini {
    display: flex;
    flex-direction: column;
}

.stat-mini strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-mini span {
    font-size: 12px;
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-right {
        display: none;
    }
    
    .login-left {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 20px;
    }
    
    .login-header h1 {
        font-size: 26px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}