/* 登录页面样式 - 不包括拼图验证模块 */

:root {
    --font-family-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-tech: 'Orbitron', 'Arial Black', sans-serif;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    background-color: #0F172A;
    color: #F3F4F6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-x: hidden;
}

/* 视频背景样式 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5) saturate(1.3);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-background video.loaded {
    opacity: 1;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.58) 100%);
    z-index: -1;
}

/* 装饰性网格背景 */
.grid-pattern {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -3;
    opacity: 0.4;
}

/* 登录面板容器 */
.login-container {
    max-width: 420px;
    width: 90vw;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
    position: relative;
    z-index: 10;
}

.login-container:hover {
    transform: translateY(-5px);
}

/* 科技感边框和阴影 */
.tech-panel {
    position: relative;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 50px -15px rgba(14, 165, 233, 0.3),
                inset 0 0 20px rgba(14, 165, 233, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tech-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(34, 211, 238, 0.2);
    margin: 12px;
    pointer-events: none;
}

/* 装饰性网格覆盖层 */
.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

/* 角落装饰 */
.corner-decoration {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: rgba(14, 165, 233, 0.6);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.top-left {
    top: 20px;
    left: 20px;
    border-width: 2px 0 0 2px;
}

.top-right {
    top: 20px;
    right: 20px;
    border-width: 2px 2px 0 0;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 2px 2px;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-width: 0 2px 2px 0;
}

/* Logo容器 */
.logo-container {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 0.2rem;
    background: linear-gradient(135deg, #0EA5E9 0%, #22D3EE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(14, 165, 233, 0.6);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
    position: relative;
    z-index: 2;
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
}

.pulse-effect {
    animation: pulse 3s ease-in-out infinite;
}

/* 标题样式 */
.title {
    font-family: var(--font-family-tech);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.8);
    text-align: center;
    text-transform: uppercase;
}

.subtitle {
    font-family: var(--font-family-tech);
    color: #9CA3AF;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

/* 文本居中辅助类 */
.text-center {
    text-align: center;
}

/* 霓虹线 */
.neon-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.8), transparent);
    width: 10rem;
    margin: 1.5rem auto;
}

/* 表单容器 */
.form-container {
    padding: 0rem 2.5rem 2rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* 输入框样式 */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(14, 165, 233, 0.8);
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 3;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 0.5rem;
    color: #F3F4F6;
    font-size: 1rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-family: var(--font-family-tech);
}

.form-input:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2),
                0 0 15px rgba(14, 165, 233, 0.4);
    background: rgba(30, 41, 59, 0.9);
    outline: none;
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* 处理浏览器自动填充样式 */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #F3F4F6;
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 41, 59, 0.7) inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #F3F4F6;
}

.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 41, 59, 0.9) inset;
}

/* 密码输入框特殊样式 - 科技感大圆点 */
input[type="password"] {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    font-family: 'Courier New', 'Consolas', monospace;
}

/* 手机号输入框样式 */
input[type="tel"] {
    letter-spacing: 0.05em;
}

/* 密码切换按钮样式增强 */
.password-toggle {
    cursor: pointer;
    z-index: 10;
}

.password-toggle i {
    pointer-events: none;
}

.form-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-input.success {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* 密码切换按钮 */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #0EA5E9;
}

/* 错误提示 */
.error-message {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* 自定义tooltip样式 */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip::after {
    content: '!';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-tooltip.show::after {
    opacity: 1;
}

.custom-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    right: -20px;
    background: #EF4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.custom-tooltip.show::before {
    opacity: 1;
}

/* 记住密码和忘记密码 */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    margin:12px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(14, 165, 233, 0.6);
    background-color: #1E293B;
    accent-color: #10B981;
}

.remember-me label {
    color: #9CA3AF;
    margin-left: 0.5rem;
}

.remember-me label a {
    color: #0EA5E9 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.remember-me label a:hover {
    color: #22D3EE !important;
}

.forgot-password {
    color: #0EA5E9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #22D3EE;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #0EA5E9 0%, #22D3EE 100%);
    border: 1px solid rgba(14, 165, 233, 0.6);
    padding: 1rem;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-family-tech);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #0EA5E9 0%, #22D3EE 100%);
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 分隔线 */
.divider {
    display: flex;
    align-items: center;
    margin: 0.4rem 0  1.5rem 0;
}

.divider-line {
    flex-grow: 1;
    background: linear-gradient(90deg, 
                rgba(14, 165, 233, 0) 0%, 
                rgba(14, 165, 233, 0.6) 50%, 
                rgba(14, 165, 233, 0) 100%);
    height: 1px;
}

.divider-text {
    flex-shrink: 0;
    margin: 0 1rem;
    color: #9CA3AF;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 第三方登录按钮 */
.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.social-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 12px;
    color: #F3F4F6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(14, 165, 233, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3);
}

.social-btn i {
    font-size: 1.5rem;
}

/* 注册链接 */
.register-link {
    text-align: center;
    color: #0EA5E9;
    font-size: 0.85rem;
    margin-top: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #22D3EE;
}

/* 底部安全信息 */
.footer-info {
    margin-top: auto;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 10;
    font-family: var(--font-family-tech);
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.back-home-link {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0EA5E9;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.back-home-link:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.6);
    color: #22D3EE;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.back-home-link i {
    transition: transform 0.3s ease;
}

.back-home-link:hover i {
    transform: translateX(-3px);
}

/* 登录成功遮罩层 */
.login-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: rgba(30, 41, 59, 0.95);
    border: 2px solid rgba(14, 165, 233, 0.6);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.5);
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-success-overlay.show .success-modal {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

.success-title {
    color: #F3F4F6;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-tech);
}

.success-message {
    color: #9CA3AF;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.success-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-spinner i {
    font-size: 2rem;
    color: #0EA5E9;
}

/* 减少动画效果 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn-login:hover {
        transform: none;
    }
    
    .social-btn:hover {
        transform: none;
    }
    
    .video-background video {
        transition: none;
    }
}

/* 响应式优化 */
@media (max-width: 640px) {
    .login-container {
        width: 95vw;
        padding: 0.9375rem;
    }
    
    .form-container {
        padding: 1.25rem;
    }
    
    .back-home-link {
        top: 1rem;
        left: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 社交登录按钮内容样式 */
.social-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-btn-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.social-btn-text {
    font-size: 12px;
}

/* 社交平台图标颜色 */
.social-btn-qq-icon {
    color: #60A5FA;
}

.social-btn-weixin-icon {
    color: #22C55E;
}

.social-btn-weibo-icon {
    color: #EF4444;
}
