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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-100);
    background-color: var(--bg-100);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: all 0.3s ease;
}

:root {
    /* 默认主题 - 配色1 */
    --primary-100: #d4eaf7;
    --primary-200: #b6ccd8;
    --primary-300: #3b3c3d;
    --accent-100: #71c4ef;
    --accent-200: #00668c;
    --text-100: #1d1c1c;
    --text-200: #313d44;
    --bg-100: #fffefb;
    --bg-200: #f5f4f1;
    --bg-300: #cccbc8;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}


.logo-img {
    width: 120px;
    height: 130px;
    
}


.logo-img:hover {
    transform: scale(1.05);
}

.logo-fallback {
    display: none;
    justify-content: center;
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-300);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-300);
    font-size: 24px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-200);
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-300);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 140, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    border-left: 4px solid #c62828;
    font-size: 14px;
}

.error-message.error-animation {
    animation: shake 0.3s ease-in-out;
}

.input-error {
    border-color: #c62828 !important;
    background-color: #ffebee;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-options a {
    color: var(--accent-100);
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 15px;
        margin: 15px;
        max-width: 95%;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    input {
        padding: 10px 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .btn {
        padding: 12px;
        font-size: 16px;
    }
}