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

html {
    background-image: url('../../images/rem.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-family: "微软雅黑", "黑体", sans-serif;
    height: 100vh;
    width: 100%;
}

body {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    width: 50%;
    height: auto;
    margin: 0 auto;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #333333;
    font-size: 26px;
    font-weight: normal;
    margin-bottom: 6px;
}

header h2 {
    color: #666666;
    font-size: 18px;
    font-weight: normal;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-column {
    flex: 1;
}

.avatar-section {
    display: flex;
    gap: 15px;
}

.avatar-upload {
    flex: 1;
    text-align: center;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 2px solid #e0e0e0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-label {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
}

.upload-label:hover {
    background-color: #e0e0e0;
}

.avatar-input {
    display: none;
}

.avatar-selection {
    flex: 2;
}

.avatar-selection h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: normal;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: border-color 0.3s;
}

.avatar-option:hover,
.avatar-option.selected {
    border-color: #1e9fff;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.input-group-item {
    padding: 5px 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.input {
    flex: 1;
    width: 100%;
    height: 36px;
    background-color: #ffffff;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    transition: border-color .3s ease;
    border-radius: 0;
    box-sizing: border-box;
}

.input:hover, .input:focus {
    outline: none;
    border-color: #999999;
}

.label {
    display: block;
    margin-bottom: 0;
    margin-right: 10px;
    font-size: 13px;
    color: #333333;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.button {
    flex: 1;
    height: 38px;
    color: white;
    font-size: 14px;
    font-weight: normal;
    font-family: "微软雅黑", "黑体", sans-serif;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login {
    background-color: #ce0002;
}

.btn-login:hover {
    background-color: #af0001;
}

.btn-reset {
    background-color: #6c757d;
}

.btn-reset:hover {
    background-color: #5a6268;
}

.to-register {
    text-align: center;
    padding: 15px 0 0 0;
}

.register {
    color: #666666;
    text-decoration: none;
    font-weight: normal;
    font-size: 12px;
}

.register-blue {
    color: #1e9fff;
}

.register-blue:hover {
    text-decoration: underline;
    color: #007bff;
}

.register:hover {
    color: #ce0002;
    cursor: pointer;
}

.warn {
    color: #dc3545;
    font-size: 12px;
    font-weight: normal;
    display: block;
    text-align: left;
    margin-top: 5px;
}

/*性别样式*/
.gender-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gender-group input[type="radio"] {
    margin: 0 6px 0 0;
    width: 14px;
    height: 14px;
}

.gender-group label {
    margin-right: 15px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
    color: #333333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .content {
        width: 90%;
        min-width: auto;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .avatar-section {
        flex-direction: column;
    }

    .avatar-preview {
        width: 80px;
        height: 80px;
    }

    .avatar-options {
        grid-template-columns: repeat(4, 1fr);
    }

    .button-group {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .content {
        padding: 15px;
        width: 95%;
    }

    .content {
        min-width: auto;
    }

    header h1 {
        font-size: 22px;
    }

    header h2 {
        font-size: 16px;
    }

    .avatar-preview {
        width: 70px;
        height: 70px;
    }

    .avatar-option {
        width: 40px;
        height: 40px;
    }
}
