/* 注册页面特有样式 */

/* 替换容器类名 */
.login-container {
    grid-template-columns: 45% 55%;
    background: var(--bg-dark); /* 添加深色背景 */
}

.login-section {
    display: none;
}

.register-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.register-box {
    width: 100%;
    max-width: 480px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem !important;  /* 覆盖 login.css 中的 padding */
    box-shadow: var(--shadow);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.register-box h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem !important;  /* 减少标题下方间距 */
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-bar.weak {
    width: 33.33%;
    background: #EF4444;
}

.strength-bar.medium {
    width: 66.66%;
    background: #F59E0B;
}

.strength-bar.strong {
    width: 100%;
    background: #10B981;
}

/* 密码匹配提示 */
.password-match {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.password-match i {
    font-size: 1rem;
}

.password-match.success {
    color: #10B981;
}

.password-match.error {
    color: #EF4444;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .brand-section {
        display: none;
    }

    .register-section {
        padding: 1.5rem;
    }

    .register-box {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .register-box {
        padding: 1.5rem;
    }
}

/* 服务协议弹窗样式 */
.agreement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.agreement-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    height: 80vh;  /* 固定高度 */
    background: var(--bg-dark);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transform: translateY(-20px);
    transition: transform 0.3s;
    position: relative;
}

.agreement-modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 2;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
}

.close-btn:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--text-gray) transparent;
}

.modal-body section {
    margin-bottom: 2.5rem;
}

.modal-body h5 {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    position: sticky;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 2;
    border-radius: 0 0 20px 20px;
}

.confirm-btn {
    background: var(--gradient);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43,93,237,0.2);
}

/* 添加滚动指示器 */
.scroll-indicator {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.scroll-indicator.hide {
    opacity: 0;
}

.scroll-up, .scroll-down {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.scroll-up:hover, .scroll-down:hover {
    transform: scale(1.1);
}

/* Webkit 浏览器的滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--text-gray);
    border-radius: 3px;
}

/* 移除 particles 容器相关样式 */
.particles-container {
    display: none; /* 或者直接删除这个样式块 */
}

/* 调整表单组间距 */
.register-form .form-group {
    margin-bottom: 1rem !important;  /* 减少表单组之间的间距 */
}

/* 调整底部链接间距 */
.register-form .form-footer {
    margin-top: 1.2rem !important;  /* 减少底部链接的上方间距 */
}

/* 调整协议复选框区域间距 */
.register-form .checkbox-wrapper {
    margin-top: 0.8rem !important;
}

.register-form .agreement-links {
    margin-top: 0.3rem !important;
}

/* 调整验证码按钮组的样式 */
.register-form .code-group {
    margin-bottom: 1rem !important;
}

/* 调整滑块验证区域的间距 */
.register-form .slider-verify {
    margin-bottom: 1rem !important;
} 