/* BSCloudID OAuth Popup Styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
#bscloudid-oauth-frame {
    width: 100%;
    height: 100%;
    border: none;
}
#bscloudid-oauth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
}
#bscloudid-oauth-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    overflow: hidden;
}

/* ============================================
   默认风格（wp-login.php 页面）
   ============================================ */
.bscloudid-login-container {
    margin-top: 20px;
    margin-bottom: 15px;
}

.bscloudid-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.bscloudid-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e5e5;
}

.bscloudid-divider span {
    background-color: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    color: #666;
}

.bscloudid-oauth-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 14px;
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    line-height: 28px;
    border-radius: 3px;
    margin: 0;
    cursor: pointer;
    border: 1px solid transparent;
}

.bscloudid-oauth-btn:hover {
    background: #006ba1;
    border-color: #006ba1;
    color: #fff;
}

.bscloudid-login-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.bscloudid-login-section p {
    text-align: center;
    margin-bottom: 15px;
}

.bscloudid-login-section a.button-primary {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
    font-size: 14px;
}

.bscloudid-login-button {
    display: inline-block;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #fff;
    background-color: #2271b1;
    border-color: #2271b1;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
}

.bscloudid-login-button:hover {
    background-color: #135e96;
    border-color: #135e96;
    color: #fff;
}

/* ============================================
   Glassmorphism 风格（自定义登录/注册页）
   ============================================ */
.bscloudid-login-container-glass {
    margin-top: 16px;
    margin-bottom: 8px;
}

.bscloudid-divider-glass {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.bscloudid-divider-glass::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.bscloudid-divider-glass span {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 16px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.bscloudid-oauth-btn-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.bscloudid-oauth-btn-glass:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.bscloudid-oauth-btn-glass:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.1);
}

.bscloudid-oauth-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-color, #6366f1);
}

.bscloudid-oauth-btn-text {
    white-space: nowrap;
}
