/* Auth Wall Styles for Protected Documentation */
body.auth-locked .md-container,
body.auth-locked .md-header,
body.auth-locked .md-tabs {
    filter: blur(12px) grayscale(40%);
    pointer-events: none !important;
    user-select: none !important;
    transition: filter 0.3s ease;
}

#auth-wall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 17, 26, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Outfit", sans-serif;
    padding: 1.5rem;
    box-sizing: border-box;
}

#auth-wall-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-wall-card {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    box-sizing: border-box;
}

.auth-wall-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem auto;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
}

.auth-wall-icon svg {
    width: 26px;
    height: 26px;
}

.auth-wall-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.auth-wall-card p {
    font-size: 0.92rem;
    color: #94a3b8;
    margin: 0 0 1.75rem 0;
    line-height: 1.5;
}

.auth-wall-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-wall-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-wall-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-wall-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-family: "JetBrains Mono", monospace, monospace;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-wall-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.auth-wall-btn {
    width: 100%;
    padding: 0.85rem;
    background: #6366f1;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.auth-wall-btn:hover {
    background: #4f46e5;
}

.auth-wall-btn:active {
    transform: scale(0.99);
}

.auth-wall-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-wall-error {
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #f87171;
    font-size: 0.85rem;
    display: none;
    text-align: center;
}

.auth-wall-error.visible {
    display: block;
    animation: authFadeIn 0.2s ease;
}

.auth-wall-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

.auth-wall-footer a {
    color: #818cf8;
    text-decoration: none;
}

.auth-wall-footer a:hover {
    text-decoration: underline;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
