/* Main CSS for SignIn Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧轮播区域 */
.slides-section {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 科技效果容器 */
.tech-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Slide 1: 粒子流动效果 */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Slide 2: 网格扫描效果 */
.grid-effect {
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grid-line-h,
.grid-line-v {
    position: absolute;
    background: rgba(100, 200, 255, 0.2);
    animation: gridPulse 3s ease-in-out infinite;
}

.grid-line-h {
    width: 100%;
    height: 1px;
    left: 0;
}

.grid-line-v {
    width: 1px;
    height: 100%;
    top: 0;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.2;
        box-shadow: 0 0 5px rgba(100, 200, 255, 0.3);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(100, 200, 255, 0.6);
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 200, 255, 0.8) 50%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
    animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Slide 3: 光波扩散效果 */
.waves-effect {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: waveExpand 3s ease-out infinite;
}

.wave-1 {
    animation-delay: 0s;
}

.wave-2 {
    animation-delay: 1s;
}

.wave-3 {
    animation-delay: 2s;
}

@keyframes waveExpand {
    0% {
        width: 50px;
        height: 50px;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 800px;
        height: 800px;
        opacity: 0;
        border-width: 1px;
    }
}

.slides-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    pointer-events: none;
    z-index: 3;
}

.slides-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.slides-logo img {
    height: 40px;
}

/* 轮播指示器 */
.slides-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.indicator.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
    border-color: rgba(255, 255, 255, 0.5);
}

/* 右侧登录区域 */
.login-section {
    width: 600px;
    min-width: 500px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    overflow-y: auto;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
}

/* 登录方式切换标签 */
.login-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.login-tab {
    padding: 12px 0;
    margin-right: 30px;
    font-size: 15px;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.login-tab:hover {
    color: #6366f1;
}

.login-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    font-weight: 500;
}

/* 登录内容区域 */
.login-content {
    display: none;
}

.login-content.active {
    display: block;
}

/* 微信扫码区域 */
.qrcode-wrapper {
    text-align: center;
    padding: 20px 0;
}

.qrcode-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    position: relative;
}

.qrcode-box svg {
    width: 160px;
    height: 160px;
    color: #9ca3af;
}

.qrcode-tip {
    color: #6b7280;
    font-size: 14px;
}

.qrcode-tip i {
    color: #22c55e;
    margin-right: 6px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group-custom {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group-custom:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group-custom .country-code {
    padding: 12px 15px;
    background: #f9fafb;
    border-right: 1px solid #d1d5db;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
}

.input-group-custom input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.input-group-custom input::placeholder {
    color: #9ca3af;
}

.input-group-custom .send-code-btn {
    padding: 8px 16px;
    margin-right: 8px;
    background: transparent;
    border: 1px solid #6366f1;
    color: #6366f1;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.input-group-custom .send-code-btn:hover {
    background: #6366f1;
    color: #fff;
}

.input-group-custom .send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* 密码切换按钮 */
.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 45px;
}

.password-toggle .toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
}

.password-toggle .toggle-btn:hover {
    color: #6366f1;
}

/* 登录方式切换 */
.login-method-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-method-switch a {
    color: #6366f1;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.login-method-switch a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 协议勾选 */
.agreement {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}

.agreement input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    accent-color: #6366f1;
}

.agreement a {
    color: #6366f1;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

/* 第三方登录 */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #9ca3af;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 15px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #6366f1;
    background: #f5f3ff;
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .slides-section {
        display: none;
    }

    .login-section {
        width: 100%;
        min-width: unset;
        max-width: 480px;
        margin: 0 auto;
    }

    .login-container {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        padding: 20px;
    }

    .login-section {
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 40px 25px;
    }

    .login-tab {
        margin-right: 20px;
        font-size: 14px;
    }
}

label.error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Set Query Domain Modal Styles */

/* Modal Title */
.modal-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.modal-title-container i {
    font-size: 18px;
    color: #6366f1;
}

/* Custom Radio Group */
.custom-radio-group .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.custom-radio-group .form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.custom-radio-group .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-color: #818cf8;
}

.custom-radio-group .form-check-label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    font-weight: 500;
}

/* Domain Input Group */
.domain-input-group .input-group-text {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

.domain-input-group .form-control {
    border-color: #e5e7eb;
    font-size: 14px;
}

.domain-input-group .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    z-index: 5;
}

/* Text Hint */
.text-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.text-hint i {
    font-size: 14px;
    margin-right: 4px;
}

.text-hint .highlight {
    color: #ef4444;
    font-weight: 500;
}

/* Current Domain Box */
.current-domain-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}

.current-domain-box .avatar {
    background-color: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
    width: 24px;
    height: 24px;
}

.current-domain-box .text-primary {
    color: #6366f1 !important;
}

.current-domain-box .badge {
    background-color: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
    padding: 4px 8px;
    font-weight: 500;
}

/* Modal Footer Buttons */
.modal-footer .btn-primary {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.modal-footer .btn-primary:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

.modal-footer .btn-dark {
    background-color: #111827;
    border-color: #111827;
}


/* ========== 特效样式 ========== */

/* Canvas 通用样式 */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 多语切换按钮样式 */
.language-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 15px !important;
    transition: all 0.3s ease;
}

.language-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.language-btn:active {
    transform: translateY(0);
}

.language-btn i {
    color: #fff;
}
