:root {
    --primary-color: #1a73e8;
    --error-color: #dc3545;
    --success-color: #28a745;
    --background-color: #f5f6f8;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    z-index: 1;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow-color);
}

h1, h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 10px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
}

h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.form-group .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1557b0;
}

.error-message {
    background: #fde8e8;
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}



@keyframes driveBus {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(calc(100vw + 100px));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px 15px;
    }
    
    input[type="email"],
    input[type="password"],
    input[type="text"] {
        padding: 10px 35px;
        font-size: 14px;
    }
    
    button {
        padding: 10px;
        font-size: 14px;
    }
}