/* 管理员自主注册 - create_admin.html 样式 */

body { font-family: sans-serif; padding: 50px; max-width: 500px; margin: 0 auto; background-color: #f4f6f8; }
.container { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
h2 { text-align: center; color: #333; margin-bottom: 25px; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; }
input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 14px; }
input:focus { border-color: #4a90e2; outline: none; }
button { width: 100%; padding: 12px; background-color: #4a90e2; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background 0.3s; }
button:hover { background-color: #357abd; }
button:disabled { background-color: #ccc; cursor: not-allowed; }
.message { margin-top: 15px; padding: 10px; border-radius: 5px; display: none; text-align: center; }
.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.note { font-size: 12px; color: #888; margin-top: 10px; text-align: center; }
.link-login { text-align: center; margin-top: 15px; font-size: 14px; }
.link-login a { color: #4a90e2; text-decoration: none; }

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 步骤指示器 */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #4a90e2;
    color: white;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: white;
    color: #4a90e2;
}

.step-text {
    font-size: 14px;
}

.step-arrow {
    font-size: 18px;
    color: #ddd;
}

.step.active + .step-arrow {
    color: #4a90e2;
}

/* 验证码输入框 */
.code-wrapper {
    display: flex;
    gap: 10px;
}

.code-wrapper input {
    flex: 1;
}

.btn-send-code {
    width: auto;
    padding: 10px 20px;
    background-color: #67c23a;
}

.btn-send-code:hover {
    background-color: #5eb83a;
}

.btn-send-code:disabled {
    background-color: #ccc;
}

/* 表单按钮组 */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-back {
    width: auto;
    background-color: #f5f5f5;
    color: #666;
}

.btn-back:hover {
    background-color: #e8e8e8;
}

/* 密码输入框样式 */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    padding-right: 40px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #888;
    font-size: 16px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password:hover {
    color: #4a90e2;
}
/* 眼睛图标 - 显示状态 */
.toggle-password .icon-eye {
    display: inline-block;
}
.toggle-password .icon-eye-off {
    display: none;
}
.toggle-password.showing .icon-eye {
    display: none;
}
.toggle-password.showing .icon-eye-off {
    display: inline-block;
}