.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.register-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.register-box h2 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}

.register-tip {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
}

.register-tip a {
    color: #667eea;
    text-decoration: none;
}

.register-tip a:hover {
    text-decoration: underline;
}

/* 表单组样式 - 保持与login一致 */
.register-box .form-group {
    margin-bottom: 20px;
}

.register-box .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.register-box .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.register-box .form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* 字段提示文字 */
.field-tip {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 6px;
}

/* 验证码组 */
.captcha-group {
    position: relative;          /* 作为定位参考 */
	display: flex;
	align-items: center; 
}

.captcha-group input {
    width: 100%;
	padding: 12px 110px 12px 16px;  /* 右侧留出按钮空间 */
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.3s;
	outline: none;
	box-sizing: border-box;         /* 去掉右侧边框，避免重叠 */
}
.captcha-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.code-btn {
    position: absolute;
    right: 4px;                 /* 距离右侧4px */
    top: 50%;
    transform: translateY(-50%); /* 垂直居中 */
    padding: 6px 12px;
    background: #e8e8e8;        /* 灰色底色 */
    color: #666;                /* 灰色文字 */
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    outline: none;
    z-index: 1;
}

.code-btn:hover {
    background: #d5d5d5;        /* 悬停时稍深灰色 */
    color: #333;
}

.code-btn:active {
    background: #c0c0c0;
}

.code-btn:disabled {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

/* 输入框聚焦时，让按钮边框也跟随变化 */
.captcha-group:focus-within .code-btn {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}


/* 按钮样式 */
.btn-block {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
	text-align: center;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.btn-block:hover {
    transform: translateY(-1px);
}

.btn-block:active {
    transform: translateY(0);
}
/* 错误提示 */
.register-box .error-msg {
    color: #ff4757;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}