/* 让注册表单在页面中居中显示 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #eef3f8;
    color: #334155;
}

.register-box {
    width: 420px;
    max-width: 100%;
    padding: 36px 34px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #5088bd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(44, 67, 92, 0.08);
}

h1 {
    margin: 0 0 28px;
    text-align: center;
    font-size: 26px;
    color: #2d4e6e;
    letter-spacing: 2px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5dee8;
    border-radius: 6px;
    background-color: #fafbfd;
    color: #334155;
    font-family: inherit;
    font-size: 16px;
}

input::placeholder {
    color: #7a8797;
    font-size: 14px;
}

input:focus {
    outline: 2px solid #b6d7f5;
    border-color: #327fc2;
    background-color: white;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #367bb5;
    color: white;
    font-size: 16px;
    font-family: inherit;
    letter-spacing: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #20669c;
}

button:focus-visible {
    outline: 2px solid #20669c;
    outline-offset: 3px;
}

#message {
    min-height: 20px;
    margin: 0 0 12px;
    color: #c0392b;
    font-size: 14px;
    line-height: 1.5;
}

#message.success {
    color: #287a43;
}

@media (max-width: 480px) {
    .register-box {
        padding: 28px 24px;
    }
}
