/**
 * PixelcraftAuth SDK 样式
 * 仅包含 SDK 按钮和提示框的样式，不影响第三方页面布局
 */

/* 登录按钮样式 */
.pc-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff6c69;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1;
}

.pc-auth-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 108, 105, 0.4);
}

.pc-auth-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.pc-auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pc-auth-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 用户信息卡片 */
.pc-auth-user-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pc-auth-user-card .pc-username {
    font-weight: 600;
}

.pc-auth-user-card .pc-email {
    color: #888;
    font-size: 12px;
}

.pc-auth-user-card .pc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff6c69;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* 登出按钮 */
.pc-auth-logout {
    background: none;
    border: 1px solid #ddd;
    color: #888;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-auth-logout:hover {
    border-color: #ff6c69;
    color: #ff6c69;
}

/* ============================================
   iframe overlay 遮罩层样式
   ============================================ */

/* 遮罩背景（全屏半透明 + 毛玻璃） */
.pc-auth-iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    opacity: 1;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* iframe 容器 */
.pc-auth-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* iframe 本体 */
.pc-auth-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}



/* 加载状态 */
.pc-auth-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pc-spin 0.6s linear infinite;
}

@keyframes pc-spin {
    to { transform: rotate(360deg); }
}
