/* pc/login_modal.html · style block 1 */
/* Custom Message Toast */
.login-message-toast {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    font-size: 15px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    visibility: hidden;
}

.login-message-toast.show {
    top: 40px;
    opacity: 1;
    visibility: visible;
}

.login-message-toast.error {
    background: #fceceb;
    color: #e5442e;
}

.login-message-toast.success {
    background: #f6ffed;
    color: #52c41a;
}

.login-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Modal Overlay */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Login Modal Container */
.login-modal-container {
    width: 880px;
    height: 530px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}



/* Close Button Outside */
.login-modal-close-btn {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s;
}
.login-modal-close-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Left Image Side */
.login-modal-left {
    width: 400px;
    background: #f4f5f9;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    position: relative;
}

.login-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.login-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    /* transition: transform 0.5s ease-in-out; */
}

.login-carousel-slide {
    flex: 0 0 400px;
    width: 400px;
    height: 530px;
    background: #f4f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-carousel-slide a {
    display: block;
    width: 400px;
    height: 530px;
}

.login-carousel-slide img {
    width: 400px;
    height: 530px;
    object-fit: cover;
}

.login-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.login-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.login-carousel-indicator.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.login-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.login-carousel-nav-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.login-carousel-container:hover .login-carousel-nav-btn {
    opacity: 1;
}

.login-carousel-nav-prev {
    left: 15px;
}

.login-carousel-nav-next {
    right: 15px;
}

.login-carousel-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Right Form Side */
.login-modal-right {
    width: 480px;
    padding: 60px 50px;
    position: relative;
    border-radius: 0 16px 16px 0;
    background: #fff;
}

/* Top Right Switcher */
.login-switcher {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 66px;
    height: 66px;
    cursor: pointer;
    z-index: 10;
    border-radius: 0 16px 0 0;
    overflow: hidden;
}

/* Tabs */
.login-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}
.login-tab {
    font-size: 20px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    position: relative;
    padding-bottom: 10px;
}
.login-tab.active {
    color: #333;
}
.login-tab .tab-line {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}
.login-tab.active .tab-line {
    display: block;
}

/* Inputs */
.login-form-container {
    min-height: 180px; /* 最小高度防止切换时闪烁 */
}
.login-input-group {
    margin-bottom: 25px;
    position: relative;
}
.login-input-group input {
    width: 100%;
    height: 52px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    color: #333;
}
.login-input-group input::placeholder {
    color: #bbb;
}
.login-input-group input:focus {
    border-color: #ff9a8b;
}

/* Error styles */
.login-input-group input.error-border {
    border-color: #ff6a4c !important;
}
.input-error-msg {
    position: absolute;
    bottom: -20px;
    left: 2px;
    font-size: 12px;
    color: #ff6a4c;
    display: none;
}

/* Get Code Button */
.get-code-btn {
    position: absolute;
    right: 15px;
    top: 16px;
    color: #ff6a4c;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

/* Extras (Remember Me, Forgot Pwd) */
.login-form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 25px; /* 调整为一致的底部间距 */
    padding: 0 5px;
}
.login-form-extras a {
    color: #2a7efb;
    text-decoration: none;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.remember-me input {
    margin-right: 6px;
    width: 14px;
    height: 14px;
}

/* Submit Button */
.login-submit-btn {
    width: 100%;
    height: 52px;
    background: #ffb1a3;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.login-submit-btn:hover {
    background: #ff9a8b;
}
.login-submit-btn.active {
    background: #ff4c33;
}
.login-submit-btn.active:hover {
    background: #e5442e;
}

/* Agreement Checkbox */
.login-agreement {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: #999;
    margin-top: 20px;
}



.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.custom-checkbox input {
    display: none;
}
.checkmark {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid #ff6a4c;
    display: inline-block;
    margin-right: 6px;
    position: relative;
    background: #fff;
    box-sizing: border-box;
}
.custom-checkbox input:checked + .checkmark {
    background: #ff6a4c;
}
.custom-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.agreement-link {
    color: #ff6a4c;
    text-decoration: none;
}

/* WeChat Quick Login */
.wechat-quick-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
}
.wechat-quick-login svg {
    width: 24px;
    height: 24px;
}

/* WeChat QR Area */
.wechat-login-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 35px;
    margin-top: 15px;
}
.wechat-qr-container {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    position: relative;
}
.wechat-qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 2px #fff;
}

.wechat-qr-logo svg {
    width: 32px;
    height: 32px;
}
.wechat-qr-container img {
    width: 100%;
    height: 100%;
}
.qr-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #999;
    font-size: 14px;
    width: 100%;
    height: 100%;
}



.qr-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #28C445;
    border-radius: 50%;
    animation: qr-spin 1s linear infinite;
}
@keyframes qr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.more-login-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #666;
    margin-top: 35px;
    cursor: pointer;
}

/* ===== 滑块安全验证 ===== */
.slide-captcha-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
}
.slide-captcha-overlay.show {
    display: flex;
}
.slide-captcha-panel {
    width: 340px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 14px 16px 16px;
    box-sizing: border-box;
    user-select: none;
}
.slide-captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.slide-captcha-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
.slide-captcha-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.slide-captcha-actions button {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-captcha-actions button:hover {
    color: #666;
}
.slide-captcha-actions svg {
    width: 18px;
    height: 18px;
}
.slide-captcha-body {
    position: relative;
    width: 310px;
    height: 155px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 2px;
    background: #f0f2f5;
}
.slide-captcha-bg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.slide-captcha-piece {
    position: absolute;
    left: 0;
    top: 0;
    width: 47px;
    height: 47px;
    pointer-events: none;
    z-index: 2;
    display: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.slide-captcha-piece.show {
    display: block;
}
.slide-captcha-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    background: #f5f6f8;
    z-index: 3;
}
.slide-captcha-bar {
    position: relative;
    width: 310px;
    height: 40px;
    margin: 14px auto 0;
    background: #f7f8fa;
    border: 1px solid #e6e8eb;
    border-radius: 20px;
    box-sizing: border-box;
}
.slide-captcha-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 20px;
    background: #d8ebff;
    pointer-events: none;
}
.slide-captcha-bar.fail .slide-captcha-bar-fill {
    background: #fde2e0;
}
.slide-captcha-bar.ok .slide-captcha-bar-fill {
    background: #d9f5e5;
}
.slide-captcha-tip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    pointer-events: none;
}
.slide-captcha-handle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e3e8;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #4a90e2;
    box-sizing: border-box;
}
.slide-captcha-handle:active {
    cursor: grabbing;
}
.slide-captcha-handle svg {
    width: 18px;
    height: 18px;
}
.slide-captcha-bar.fail .slide-captcha-handle {
    background: #e5442e;
    border-color: #e5442e;
    color: #fff;
}
.slide-captcha-bar.ok .slide-captcha-handle {
    background: #52c41a;
    border-color: #52c41a;
    color: #fff;
}
.slide-captcha-msg {
    min-height: 20px;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #e5442e;
}
