:root {
    --primary: #587ef4;
    --primary-light: #7e9cf6;
    --primary-dark: #3b5bdb;
    --bg-main: #f8f9fa;
    --white: #ffffff;
    --text-main: #1a1b1e;
    --text-muted: #909296;
    --border-color: #e9ecef;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-xl: 32px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
}

.login-container {
    display: flex;
    width: 1000px;
    max-width: 95vw;
    min-height: 650px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

/* Left Side: Visual */
.login-visual {
    flex: 1;
    background: linear-gradient(135deg, #587ef4 0%, #3b5bdb 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.visual-content {
    position: relative;
    z-index: 2;
}

.visual-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInRight 0.8s ease-out;
}

.visual-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 280px;
    line-height: 1.6;
    animation: fadeInRight 1s ease-out;
}

/* Floating Shapes */
.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.shape-1 { width: 150px; height: 150px; top: -50px; left: -50px; }
.shape-2 { width: 200px; height: 200px; bottom: -80px; right: -50px; background: rgba(255, 255, 255, 0.05); }
.dots {
    position: absolute;
    top: 40px;
    left: 40px;
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 12px;
}
.dot { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; }

.planet-shape {
    position: absolute;
    bottom: -100px;
    left: 50px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 20s linear infinite;
}

.planet-inner {
    width: 180px;
    height: 180px;
    background: linear-gradient(to bottom, #7e9cf6, #587ef4);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(88, 126, 244, 0.5);
}

/* Right Side: Form */
.login-form-side {
    flex: 1.1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: fadeInLeft 0.8s ease-out;
}

.logo-box {
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.logo-box img {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
}



.welcome-text {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    color: var(--text-main);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(88, 126, 244, 0.1);
}

.form-input:focus + i {
    color: var(--primary);
}

.form-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

.remember-me input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--primary);
}

.reset-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.reset-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(88, 126, 244, 0.2);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(88, 126, 244, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-muted);
    
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 15px;
}

.social-logins {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    width: 60px;
    height: 50px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--primary);
    background: #f1f3fe;
    transform: translateY(-2px);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.register-link {
    text-align: center;
    
    color: var(--text-muted);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-summary {
    background: #fff5f5;
    border: 1px solid #ffe3e3;
    color: #e03131;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    
    text-align: center;
}

/* Animations */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        max-width: 450px;
        min-height: auto;
    }
    .login-visual {
        display: none;
    }
    .login-form-side {
        padding: 40px 30px;
    }
    .logo-box {
        margin-bottom: 24px;
    }
    .logo-box img {
        height: 55px;
    }
    .welcome-text {
        margin-bottom: 24px;
    }
    .welcome-text h1 {
        font-size: 1.4rem;
    }
    .welcome-text p {
        font-size: 0.9rem;
    }
    .input-group {
        margin-bottom: 16px;
    }
    .input-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    .form-tools {
        margin-bottom: 20px;
        font-size: 0.875rem;
    }
    .btn-login {
        padding: 14px;
        font-size: 0.95rem;
    }
    .divider {
        margin: 20px 0;
        font-size: 0.9rem;
    }
    .social-logins {
        margin-bottom: 20px;
    }
    .register-link {
        font-size: 0.9rem;
    }
}
