/* 参会入口页面样式 */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 背景装饰光效 */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4a9eff 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation: glowFloat 12s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: glowFloat 15s ease-in-out infinite reverse;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

/* 顶部 Header */
.header {
    padding: 40px 20px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
    background: rgba(10, 22, 40, 0.4);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
    margin-bottom: 4px;
    filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.4));
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.header-subtitle {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 400;
}

/* 主内容区 */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.join-container {
    width: 100%;
    max-width: 420px;
}

/* 加入会议卡片 */
.join-card {
    text-align: center;
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-header-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--accent);
    opacity: 0.7;
}

.card-header-icon svg {
    width: 100%;
    height: 100%;
}

.join-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* 带图标的输入框 */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper .form-control {
    padding-left: 42px;
}

.input-wrapper .form-control:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--accent);
}

/* 音视频设备选项 */
.media-options {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}

.media-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.media-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.media-option svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.media-option:has(input:checked) svg {
    color: var(--accent);
}

.media-option:has(input:checked) span {
    color: var(--text-primary);
}

/* 按钮增强 */
#join-btn {
    margin-top: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

#join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

#join-btn:hover::before {
    left: 100%;
}

#join-btn:disabled {
    cursor: wait;
}

#join-btn svg {
    flex-shrink: 0;
}

/* 页脚 */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(10, 22, 40, 0.3);
}

.footer-text {
    font-size: 13px;
    letter-spacing: 1px;
}

/* 响应式 */
@media (max-width: 768px) {
    .header {
        padding: 28px 16px 24px;
    }

    .header h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .header-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .join-card {
        padding: 28px 20px;
    }

    .glow-1, .glow-2 {
        width: 300px;
        height: 300px;
    }
}
