/* ========================================
   登录注册页面样式
   ======================================== */

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
    position: relative;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 45px 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 165, 181, 0.2);
    box-shadow: 0 20px 60px rgba(139, 165, 181, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 20px;
    mix-blend-mode: multiply;
}

.auth-header h1 {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 2rem;
    color: var(--red-deep);
    margin-bottom: 8px;
    letter-spacing: 5px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group label i {
    color: var(--blue-mist);
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid rgba(139, 165, 181, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--red-deep);
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 35, 35, 0.08);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(139, 165, 181, 0.4);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--red-deep);
    border-color: var(--red-deep);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--red-deep);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--blue-mist);
}

.forgot-link:hover {
    color: var(--red-deep);
}

.auth-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, var(--red-medium) 0%, var(--red-deep) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 35, 35, 0.25);
}

.auth-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 35, 35, 0.35);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(139, 165, 181, 0.2);
}

.auth-divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(139, 165, 181, 0.25);
    background: white;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.wechat:hover {
    border-color: #07c160;
    color: #07c160;
}

.social-btn.qq:hover {
    border-color: #12b7f5;
    color: #12b7f5;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--red-deep);
    font-weight: 500;
}

/* ========================================
   注册方式切换
   ======================================== */
.register-method-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(139, 165, 181, 0.08);
    padding: 5px;
    border-radius: 12px;
}

.method-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.method-btn:hover {
    color: var(--text-dark);
}

.method-btn.active {
    background: white;
    color: var(--red-deep);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.method-btn i {
    font-size: 1rem;
}

/* 验证码输入 */
.verify-group .verify-input-wrap {
    display: flex;
    gap: 12px;
}

.verify-group .form-input {
    flex: 1;
}

.verify-btn {
    padding: 0 20px;
    background: linear-gradient(135deg, var(--blue-mist) 0%, var(--blue-deep) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.verify-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 122, 138, 0.3);
}

.verify-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* ========================================
   协议条款区域
   ======================================== */
.agreement-section {
    background: rgba(139, 165, 181, 0.06);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(139, 165, 181, 0.12);
}

.agreement-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--red-deep);
    margin-bottom: 15px;
    font-weight: 500;
}

.agreement-title i {
    font-size: 1rem;
}

.agreement-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 165, 181, 0.1);
}

.agreement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.agreement-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.agreement-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
    padding-left: 0;
}

/* ========================================
   协议弹窗
   ======================================== */
.agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.agreement-modal.show {
    opacity: 1;
    visibility: visible;
}

.agreement-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s;
}

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

.agreement-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(139, 165, 181, 0.15);
}

.agreement-modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.agreement-modal-header .close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(139, 165, 181, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.agreement-modal-header .close-btn:hover {
    background: rgba(139, 35, 35, 0.1);
    color: var(--red-deep);
}

.agreement-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.agreement-modal-body h4 {
    color: var(--red-deep);
    margin: 20px 0 10px;
    font-size: 1rem;
}

.agreement-modal-body h4:first-child {
    margin-top: 0;
}

.agreement-modal-body p {
    margin-bottom: 12px;
}

.agreement-modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.agreement-modal-body li {
    margin-bottom: 8px;
}

.agreement-modal-body strong {
    color: var(--red-deep);
}

.agreement-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(139, 165, 181, 0.15);
    text-align: center;
}

.agreement-modal-footer .confirm-btn {
    padding: 12px 50px;
    background: linear-gradient(135deg, var(--red-medium) 0%, var(--red-deep) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.agreement-modal-footer .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 35, 35, 0.3);
}

/* ========================================
   全站免责声明
   ======================================== */
.global-disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(139, 35, 35, 0.95) 0%, rgba(90, 50, 50, 0.95) 100%);
    padding: 12px 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    text-align: center;
}

.disclaimer-content i {
    font-size: 1rem;
    color: var(--gold-soft);
}

/* ========================================
   线描艺术背景
   ======================================== */
.art-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.art-pattern {
    width: 100%;
    height: 100%;
    color: var(--red-deep);
}

.lotus-group {
    animation: floatSlow 20s ease-in-out infinite;
}

.cloud-pattern {
    animation: driftSlow 30s linear infinite;
}

.bagua-lines {
    animation: pulseSlow 10s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes driftSlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(50px); }
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.06; }
}

/* 响应式 */
@media (max-width: 480px) {
    .auth-card {
        padding: 35px 25px;
    }
    
    .auth-header h1 {
        font-size: 1.7rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .register-method-switch {
        flex-direction: column;
    }
    
    .verify-group .verify-input-wrap {
        flex-direction: column;
    }
    
    .verify-btn {
        padding: 12px 20px;
    }
    
    .global-disclaimer {
        padding: 10px 15px;
    }
    
    .disclaimer-content {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 5px;
    }
}
