/* ========================================
   登录/注册页面样式
======================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.auth-logo img {
    height: 50px;
    width: auto;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* 注册福利广告 */
.register-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.register-bonus i {
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

.register-bonus strong {
    color: #ffd700;
    font-size: 1.1rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 表单样式 */
.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-form label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.auth-form .form-control-dcs {
    width: 100%;
}

/* 短信验证码输入 */
.sms-input {
    display: flex;
    gap: 10px;
}

.sms-input .form-control-dcs {
    flex: 1;
}

.btn-sms {
    white-space: nowrap;
    min-width: 110px;
    padding: 0 1rem;
    font-size: 0.85rem;
    border-width: 1px;
}

/* 密码输入 */
.password-input {
    position: relative;
}

.password-input .form-control-dcs {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* 验证码输入 */
.captcha-input {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.captcha-input .form-control-dcs {
    flex: 1;
}

.captcha-input img {
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #fff;
}

/* 密码强度 */
.password-strength {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.strength-bar {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-bar.weak { background: var(--danger-color); }
.strength-bar.medium { background: var(--accent-color); }
.strength-bar.strong { background: var(--success-color); }

.strength-text {
    font-size: 0.75rem;
    margin-left: 8px;
    min-width: 20px;
}

.strength-text.weak { color: var(--danger-color); }
.strength-text.medium { color: var(--accent-color); }
.strength-text.strong { color: var(--success-color); }

/* 复选框 */
.form-check {
    margin-bottom: 1.2rem;
}

.form-check-input {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    margin-right: 8px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

/* 按钮 */
.btn-block {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* 页脚 */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 装饰元素 */
.auth-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: pulse 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: -50px;
    left: -50px;
    animation: pulse 10s ease-in-out infinite;
    animation-delay: 2s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--success-color);
    top: 50%;
    left: 10%;
    animation: pulse 6s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

/* 弹窗样式 */
.modal-dcs {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.modal-dcs .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.modal-dcs .modal-title {
    color: var(--text-primary);
}

.modal-dcs .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-dcs .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* 滑动验证样式 */
.slider-tip {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.slider-container {
    position: relative;
    user-select: none;
}

.slider-track {
    height: 44px;
    background: var(--bg-dark);
    border-radius: 22px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 22px;
    transition: none;
}

.slider-fill.success {
    background: var(--success-color);
}

.slider-thumb {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1rem;
    transition: none;
    z-index: 2;
}

.slider-thumb:active {
    cursor: grabbing;
}

.slider-thumb.success {
    background: var(--success-color);
    color: white;
}

.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    white-space: nowrap;
}

.slider-text.success {
    color: var(--success-color);
}

/* Markdown内容样式 */
.markdown-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.markdown-body h1 { font-size: 1.5rem; }
.markdown-body h2 { font-size: 1.3rem; }
.markdown-body h3 { font-size: 1.1rem; }
.markdown-body h4 { font-size: 1rem; }

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body strong {
    color: var(--text-primary);
}

.markdown-body a {
    color: var(--primary-color);
}

.markdown-body blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
}

.markdown-body code {
    background: var(--bg-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* 响应式 */
@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .btn-sms {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .modal-dcs .modal-body {
        max-height: 50vh;
    }
}
