/**
 * Minimal shared shell for product modules with usesStandaloneAssets().
 * Replaces vidfk/style.css + framekit-ui.css + theme CSS for those sites.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 10px 16px;
    background: var(--primary, #18181b);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

@keyframes fk-shell-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fk-shell-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.login-modal.show {
    display: flex !important;
    animation: fk-shell-backdrop-in 0.2s ease;
}

.login-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 40px 32px 32px;
    border: 1px solid rgba(228, 228, 231, 0.9);
    border-radius: 20px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(124, 58, 237, 0.1), transparent 55%),
        #fff;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.18),
        0 2px 8px rgba(15, 23, 42, 0.06);
    text-align: left;
    animation: fk-shell-fade-in 0.28s ease;
}

.login-modal-brand {
    width: 40px;
    height: 4px;
    margin-bottom: 20px;
    border-radius: 99px;
    background: var(--primary, #18181b);
}

.login-modal-content h3 {
    margin: 0 0 8px;
    color: #18181b;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.login-modal-content p {
    margin: 0 0 28px;
    color: #71717a;
    font-size: 0.95rem;
    line-height: 1.55;
}

.login-modal-note {
    margin-bottom: 0 !important;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    color: #52525b !important;
    font-size: 0.875rem !important;
}

.google-login-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #d4d4d8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    color: #18181b !important;
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.google-login-modal-btn:hover {
    background: #fafafa;
    border-color: #a1a1aa;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.google-login-modal-btn:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.28);
    outline-offset: 2px;
}

.google-login-modal-btn svg {
    flex-shrink: 0;
}

.login-modal-test-form {
    margin-top: 12px;
    width: 100%;
}

.login-modal-test-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border: 1px dashed #a1a1aa;
    border-radius: 12px;
    background: #fafafa;
    color: #52525b !important;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    cursor: pointer;
}

.login-modal-test-btn:hover {
    background: #f4f4f5;
    border-color: #71717a;
    color: #18181b !important;
}

.close-modal-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #fff;
    color: #71717a;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.close-modal-btn:hover {
    color: #18181b;
    background: #f4f4f5;
    border-color: #d4d4d8;
}

.close-modal-btn:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.28);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .login-modal {
        padding: 16px;
        align-items: flex-end;
    }

    .login-modal-content {
        max-width: none;
        padding: 36px 22px 24px;
        border-radius: 20px 20px 16px 16px;
    }
}
