/* 注册页面主容器 */
.register-container {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

/* 注册框样式 */
.register-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.5s ease;
}

.register-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.input-tip {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 验证码输入框 */
.verification-input {
    display: flex;
    gap: 10px;
}

.verification-input input {
    flex: 1;
}

.send-code-btn {
    padding: 0 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.send-code-btn:hover {
    background: #357abd;
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 协议同意 */
.form-agreement {
    margin: 20px 0;
}

.agreement-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.agreement-link {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #357abd;
    text-decoration: underline;
}

/* 注册按钮 */
.register-btn {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background: #357abd;
}

.register-btn:active {
    transform: translateY(1px);
}

/* 登录链接 */
.login-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* 错误提示 */
.error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
}

.form-group input.error {
    border-color: #ff4d4f;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式适配 */
@media screen and (max-width: 480px) {
    .register-box {
        padding: 30px 20px;
    }

    .register-box h2 {
        font-size: 20px;
    }

    .verification-input {
        flex-direction: column;
    }

    .send-code-btn {
        width: 100%;
        padding: 12px;
    }

    .agreement-label {
        flex-wrap: wrap;
    }
} 