* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.container {
    position: relative;
    width: 360px;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-container {
    position: relative;
    width: 100%;
}

.form {
    display: none;
    transition: 0.3s;
}

.form.active {
    display: block;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    outline: none;
    background: #fff;
    transition: 0.2s;
}

.form-group label {
    position: absolute;
    top: -8px;
    left: 12px;
    padding: 0 4px;
    font-size: 12px;
    color: #666;
    background: #fff;
    pointer-events: none;
}

.form-group input:focus {
    border-color: #2196F3;
}

.form-group input:focus + label {
    color: #2196F3;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #1976D2;
}

.switch-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 13px;
}

.switch-text a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.switch-text a:hover {
    color: #1976D2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* 输入框自动填充样式 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #333;
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
} 