/* Pro Theme Login Styles - 全新现代化设计 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: #0f172a;
    min-height: 100vh;
    overflow: hidden;
}

/* 登录页面容器 */
.login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景装饰 */
.bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    top: -200px;
    left: -100px;
    animation: float1 20s ease-in-out infinite;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    bottom: -100px;
    right: -50px;
    animation: float2 15s ease-in-out infinite;
}

.bg-circle-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 30px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -20px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* 主容器 */
.login-main {
    position: relative;
    z-index: 1;
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    max-height: 700px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* 左侧品牌展示区 */
.brand-section {
    flex: 1;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.brand-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 450px;
}

.brand-logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.brand-logo i {
    font-size: 32px;
    color: #fff;
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.brand-slogan {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

/* 统计数据 */
.brand-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* 特性卡片 */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-box i {
    font-size: 18px;
    color: #fff;
}

.feature-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* 右侧表单区 */
.form-section {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-inner {
    width: 100%;
    max-width: 400px;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 登录方式切换 */
.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
}

.login-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.login-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

/* 登录面板 */
.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 输入组 */
.input-group {
    margin-bottom: 18px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.input-field {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 15px;
    z-index: 1;
    transition: color 0.3s ease;
    pointer-events: none;
}

.input-field:focus-within .input-icon {
    color: #60a5fa;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* 验证码组 */
.captcha-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.captcha-image:hover {
    border-color: #3b82f6;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 二维码容器 */
.qr-container {
    text-align: center;
    padding: 20px 0;
}

.qr-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
}

#qrcode {
    width: 176px;
    height: 176px;
}

#qrcode img, #qrcode canvas {
    width: 176px !important;
    height: 176px !important;
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.qr-overlay i {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 12px;
}

.qr-overlay p {
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-refresh-qr {
    padding: 8px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-refresh-qr:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.qr-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* 页脚 */
.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* Toast 提示 */
.login-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .brand-section {
        padding: 40px;
    }
    
    .brand-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .login-main {
        flex-direction: column;
        height: auto;
        max-height: none;
        margin: 20px;
    }
    
    .brand-section {
        padding: 40px 30px;
    }
    
    .brand-stats {
        justify-content: center;
    }
    
    .form-section {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-main {
        margin: 10px;
        border-radius: 16px;
    }
    
    .brand-section {
        padding: 30px 20px;
    }
    
    .brand-title {
        font-size: 22px;
    }
    
    .brand-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .login-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-control {
        height: 46px;
    }
    
    .btn-submit {
        height: 48px;
    }
    
    .qr-box {
        width: 180px;
        height: 180px;
    }
    
    #qrcode {
        width: 156px;
        height: 156px;
    }
    
    #qrcode img, #qrcode canvas {
        width: 156px !important;
        height: 156px !important;
    }
}
