/* מסך נעילה לפני הכניסה לאתר */
html.site-locked {
    overflow: hidden;
}

html.site-locked body {
    opacity: 0;
}

.site-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow-y: auto;
    background-color: var(--background-color);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(212, 175, 55, 0.20), transparent 33rem),
        radial-gradient(circle at 88% 2%, rgba(201, 162, 39, 0.16), transparent 35rem),
        radial-gradient(circle at 70% 96%, rgba(47, 122, 82, 0.12), transparent 32rem),
        radial-gradient(circle at 50% 45%, transparent 45%, rgba(201, 162, 39, 0.08) 100%);
}

.site-gate-panel {
    position: relative;
    width: min(100%, 27rem);
    border: 1px solid var(--glass-border);
    border-radius: 2.2rem;
    background: linear-gradient(145deg, #FFFFFF, #F3ECD9);
    box-shadow: 0 30px 90px rgba(90, 70, 30, 0.28);
    padding: 2.6rem 1.75rem 2rem;
    text-align: center;
}

.site-gate-logo {
    display: block;
    width: auto;
    max-width: 11rem;
    max-height: 4.5rem;
    margin: 0 auto 1.2rem;
    object-fit: contain;
}

.site-gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.5rem;
}

.site-gate-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-color);
}

.site-gate-sub {
    margin: 0 0 1.6rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.site-gate-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-gate-input {
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0.5rem 1.25rem;
    text-align: center;
    letter-spacing: 0.15em;
    font-size: 1.05rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.site-gate-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.site-gate-submit {
    min-height: 3rem;
    width: 100%;
    border-radius: 999px;
}

.site-gate-error {
    margin: 0;
    min-height: 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #C0392B;
}

.site-gate-error.is-visible {
    animation: siteGateShake 380ms ease;
}

@keyframes siteGateShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}