* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    display: flex;
    min-height: 600px;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        top: -100px;
        right: -100px;
    }

    .login-left h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

    .login-left p {
        font-size: 1.1rem;
        line-height: 1.6;
        opacity: 0.9;
        position: relative;
        z-index: 1;
    }

    .login-left .features {
        margin-top: 40px;
        position: relative;
        z-index: 1;
    }

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .feature-item i {
        font-size: 1.5rem;
        margin-right: 15px;
    }

.login-right {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

    .login-header h2 {
        color: #333;
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .login-header p {
        color: #666;
    }

.form-group {
    margin-bottom: 25px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 500;
    }

.input-wrapper {
    position: relative;
}

    .input-wrapper i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .remember-me input {
        margin-right: 8px;
        cursor: pointer;
    }

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #e0e0e0;
    }

    .divider span {
        background: white;
        padding: 0 15px;
        color: #999;
        position: relative;
        z-index: 1;
    }

.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .social-btn:hover {
        border-color: #667eea;
        background: #f8f9ff;
    }

.register-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

    .register-link a {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
    }

        .register-link a:hover {
            text-decoration: underline;
        }

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.loading {
    display: none;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 30px;
    }

        .login-left h1 {
            font-size: 2rem;
        }

    .login-right {
        padding: 40px 30px;
    }
}
