* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Microsoft YaHei', Arial, sans-serif; }
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 14px;
}
.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}
.header-title {
    text-align: center;
    padding: 24px 0;
    background: #f8f9fa;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #eaeaea;
}
.form-container {
    padding: 30px;
}
.error {
    background: #ffebee;
    color: #c62828;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    border-left: 4px solid #f44336;
    white-space: pre-line;
    font-size: 13px;
}
.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
}
.form-row > label {
    font-weight: normal;
    color: #34495e;
    font-size: 13px;
    width: 110px;
    text-align: right;
    margin-right: 12px;
    flex-shrink: 0;
    padding-top: 8px;
}
.form-row > .input-container {
    flex: 1;
    width: 0;
}
input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}
input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}
button[type="submit"] {
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    width: 100%;
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.4);
}
.switch-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #7f8c8d;
}
.switch-link a {
    color: #3498db;
    text-decoration: none;
    margin: 0 6px;
}
.switch-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; }
    .form-row > label {
        width: auto; text-align: left; margin-bottom: 6px; padding-top: 0;
    }
    .header-title { font-size: 18px; }
}