/* 注册页面专用样式 */
.register-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.register-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem 2.2rem;
    animation: fadeInUp 0.6s ease-out;
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.register-header h2 i {
    color: #3498db;
    margin-right: 8px;
}

.register-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.register-header p a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-header p a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.social-register {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn.github:hover {
    background-color: #24292e;
    border-color: #24292e;
    color: white;
}

.social-btn.google:hover {
    background-color: #DB4437;
    border-color: #DB4437;
    color: white;
}

.social-btn.qq:hover {
    background-color: #1e9bff;
    border-color: #1e9bff;
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    margin: 0 1rem;
}

.register-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label i {
    color: #3498db;
    width: 20px;
    margin-right: 6px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    background-color: white;
}

.input-wrapper i {
    padding: 0 12px;
    color: #95a5a6;
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #bdc3c7;
    font-size: 0.95rem;
}

/* 验证码行 */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row .input-wrapper {
    flex: 1;
}

.get-code-btn {
    background-color: #ecf0f1;
    border: 1px solid #d0d7dd;
    border-radius: 8px;
    padding: 0 16px;
    height: 48px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.get-code-btn i {
    color: #3498db;
}

.get-code-btn:hover:not(:disabled) {
    background-color: #e0e6ec;
    border-color: #3498db;
}

.get-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #bdc3c7;
    color: #7f8c8d;
}

/* 密码强度提示 */
.password-strength {
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background-color: #ecf0f1;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.strength-bar.weak {
    background-color: #e74c3c;
}

.strength-bar.medium {
    background-color: #f39c12;
}

.strength-bar.strong {
    background-color: #27ae60;
}

.password-match {
    font-size: 0.85rem;
    margin-top: 5px;
}

.match-success {
    color: #27ae60;
}

.match-error {
    color: #e74c3c;
}

/* 人机验证滑块 */
.captcha-block {
    margin: 1.5rem 0;
}

.captcha-label {
    display: block;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.captcha-label i {
    color: #3498db;
    margin-right: 8px;
}

.slider-container {
    position: relative;
    width: 100%;
    background-color: #ecf0f1;
    border-radius: 30px;
    padding: 4px;
    border: 1px solid #d0d7dd;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

.slider-container.verified {
    background-color: #d4edda;
    border-color: #27ae60;
}

.slider-track {
    position: relative;
    height: 48px;
    border-radius: 30px;
    background: linear-gradient(90deg, #e8f0fe, #d4e6f1);
    user-select: none;
}

.slider-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 48px;
    background-color: #3498db;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: left 0.1s ease, background-color 0.2s;
    z-index: 5;
    border: 2px solid white;
}

.slider-thumb:active {
    cursor: grabbing;
    background-color: #2980b9;
}

.slider-thumb i {
    pointer-events: none;
}

.slider-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.slider-text i {
    margin-right: 6px;
    color: #7f8c8d;
}

.slider-container.verified .slider-thumb {
    background-color: #27ae60;
    left: calc(100% - 60px) !important;
}

.slider-container.verified .slider-text i:not(.fa-check-circle),
.slider-container.verified .slider-text span:not(.success-text) {
    display: none;
}

.success-text {
    display: none;
}

.slider-container.verified .slider-text .success-text {
    display: inline-block;
    color: #27ae60;
    font-weight: 600;
}

/* 注册按钮 */
.register-btn {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(52,152,219,0.2);
    margin-top: 1rem;
}

.register-btn:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.register-btn:disabled {
    background-color: #bdc3c7;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 协议链接区域 */
.login-prompt {
    text-align: center;
    margin-top: 2rem;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.login-prompt a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin: 0 3px;
    cursor: pointer;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* 悬浮协议卡片 */
.protocol-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.protocol-card {
    background-color: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fadeInUp 0.3s ease-out;
}

.protocol-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.protocol-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.protocol-header h3 i {
    color: #3498db;
    margin-right: 8px;
}

.close-protocol {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s;
    line-height: 1;
}

.close-protocol:hover {
    color: #e74c3c;
}

.protocol-content {
    padding: 1.5rem;
    color: #2c3e50;
}

.protocol-content h4 {
    margin: 1.2rem 0 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.protocol-content p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.protocol-content .disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.2rem 0;
    border-radius: 4px;
    color: #856404;
}

.protocol-content .disclaimer i {
    margin-right: 6px;
    color: #856404;
}

@media (max-width: 768px) {
    .register-card {
        padding: 2rem 1.2rem;
        margin: 0.5rem;
    }
    
    .social-register {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .get-code-btn {
        justify-content: center;
        padding: 12px;
        height: auto;
    }
    
    .slider-thumb {
        width: 50px;
    }
    
    .slider-container.verified .slider-thumb {
        left: calc(100% - 50px) !important;
    }
    
    .protocol-card {
        max-width: 90%;
    }
}