/* 登录弹窗样式 - 优化版 (更新类名) */
.lukai-auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.lukai-modal-content {
    background: white;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 550px;
    max-width: 90%;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideDown 0.3s ease forwards;
    /* 确保模态框在视图最上层 */
    z-index: 10001;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.lukai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    color: #2d5016;
    box-shadow: 0 4px 12px rgba(168, 230, 207, 0.3);
}

.lukai-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    padding-left: 40px;
}

.lukai-modal-header h2::before {
    content: '\f03d'; /* Font Awesome video icon unicode */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #2d5016;
}

.lukai-close {
    color: white;
    font-size: 28px;
    cursor: pointer;
    background: rgba(51, 47, 47, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lukai-close:hover {
    background: rgba(34, 20, 20, 0.7);
}

.lukai-modal-body {
    padding: 32px;
}
/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.user-name:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 退出按钮样式 */
.user-info .lukai-login-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #c2f169;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-info .lukai-login-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}
.lukai-auth-tabs {
    display: flex;
    background: #f0f8f0;
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 28px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.lukai-auth-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #5a8c5a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lukai-auth-tab.active {
    background: white;
    color: #4caf50;
    box-shadow: 0 4px 12px rgba(168, 230, 207, 0.2);
}

.lukai-form-group {
    margin-bottom: 28px;
    position: relative;
}

.lukai-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}
.lukai-form-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid #e0f2e0;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fff8;
    color: #2d5016;
}

.lukai-form-input:focus {
    outline: none;
    border-color: #a8e6cf;
    background: white;
    box-shadow: 0 0 0 3px rgba(168, 230, 207, 0.1);
}

.lukai-form-input::placeholder {
    color: #a0aec0;
}
.lukai-sms-group {
    display: flex;
    gap: 12px;
    align-items: center;
}
.lukai-sms-btn {
    padding: 16px 20px;
    background: #a8e6cf;
    color: #2d5016;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    min-width: 140px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(168, 230, 207, 0.2);
}

.lukai-sms-btn:hover:not(:disabled) {
    background: #97d4bc;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(168, 230, 207, 0.3);
}

.lukai-sms-btn:disabled {
    background: #e0c9bf;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.lukai-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.lukai-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
}

.lukai-forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.lukai-forgot-password:hover {
    text-decoration: underline;
}

.lukai-btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    color: #2d5016;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lukai-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 230, 207, 0.4);
}

.lukai-btn-primary:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.lukai-auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #718096;
    font-size: 14px;
}

.lukai-auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.lukai-auth-link:hover {
    text-decoration: underline;
}

.lukai-auth-mode-switch {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .lukai-modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .lukai-sms-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lukai-sms-btn {
        min-width: auto;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* 错误和成功提示 */
.lukai-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.lukai-alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.lukai-alert-success {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

/* 输入图标 */
.lukai-input-with-icon {
    position: relative;
}

.lukai-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #4caf50;
    font-size: 20px;
    transition: color 0.3s ease;
}

.lukai-input-with-icon .lukai-form-input:focus + .lukai-input-icon {
    color: #388e3c;
}

/* 加载动画 */
.lukai-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}