
.register-container {
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
}

.register-box {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 50px 60px;
    width: 100%;
    min-height: 520px;
    margin: 30px auto;
    text-align: left;
}
.form-group {
    margin-bottom: 30px;  /* 增加间距 */
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 10px;  /* 放大字体 */
    height: 20px;  /* 固定高度 */
}

button {
    width: 100%;
    padding: 16px;
    background: #43a047;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 17px;
    margin-top: 25px;
}
h2 {
    font-size: 32px;
    margin-bottom: 40px;
}
button:hover {
    background: #388e3c;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: #2e7d32;
    text-decoration: none;
}

.social-register {
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-top: 30px;
}
.face-register {
    width: 100%;
    padding: 14px;
    background: #24292e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 15px;
}

.face-register:hover {
    opacity: 0.9;
}

/* 以下样式与登录页面共用 */
/* 复用登录页面样式 */
.divider {
    color: #999;
    font-size: 14px;
    margin: 25px 0;
    position: relative;
    text-align: center;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #eee;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}
.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px; /* 图标间距 */
    margin-left: auto; /* 右对齐关键属性 */
    padding-right: 20px; /* 右侧留白 */
}

.icon-btn, .icon-link {
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 0;
}

.icon {
    width: 25px;
    height: 25px;
    transition: opacity 0.3s;
    opacity: 0.8;  /* 适当降低不透明度 */
    vertical-align: middle;
}

/* 悬停效果 */
.icon-btn:hover .icon,
.icon-link:hover .icon {
    opacity: 1;  /* 悬停时全显 */
    transform: scale(1.1);  /* 微交互动画 */
}

/* 搜索框过渡效果 */
.search-box {
    position: absolute;
    right: 200px;
    transition: width 0.3s;
    width: 0;
    overflow: hidden;
}

.search-box.active {
    width: 200px;
}
/* 在register.css中添加 */
.video-preview {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.capture-btn {
    background: #2196F3 !important;
    margin: 15px 0;
}

.capture-btn:hover {
    background: #1976D2 !important;
}

/* 用户名输入框特殊样式 */
input[name="username"] {
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

/* 输入提示样式 */
input:invalid {
    border-color: #ff9800;
    box-shadow: 0 0 4px rgba(255,152,0,0.2);
}

input:invalid:focus {
    border-color: #f44336;
}

/* 移动端适配 */
@media (max-width: 480px) {
    input[name="username"] {
        font-size: 14px;
    }
}





/* 消息提示样式 */
.message-container {
    margin: 15px 0;
}

.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}
/* 人脸采集区域 */
.video-section {
    margin: 20px 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.capture-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* 预览样式 */
.preview-container {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.face-preview {
    width: 120px;
    height: 120px;
    border-radius: 6px;
}

.retry-btn {
    display: block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}