/* ==========================================================================
   gate.css — runtime chrome for the Telegram-gated flow.

   Only what the inert replica never needed: a "checking" overlay while the
   operator decides, the sign-in form's error line, and the success screen.
   All page chrome stays in the sage/site stylesheets; these classes are
   additive, in Sage's own palette (white card, #14161a ink, #00DC00 accent).
   ========================================================================== */

/* ---- waiting overlay ---------------------------------------------------- */

.gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #14161a;
    font-family: 'Sage UI', 'Sage Text', Arial, sans-serif;
    font-size: 15px;
}

.gate-overlay__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e4e6e8;
    border-top-color: #00dc00;
    border-radius: 50%;
    animation: gate-spin 0.8s linear infinite;
}

.gate-overlay__title {
    font-weight: 600;
}

.gate-overlay__sub {
    font-size: 13px;
    color: #5f6368;
}

@keyframes gate-spin {
    to { transform: rotate(360deg); }
}

/* busy state while a decision is pending */
.sign-in-submit-button[disabled] {
    opacity: 0.55;
    cursor: progress;
}

/* ---- inline error on the sign-in form ----------------------------------- */

.sg-login-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #e53935;
    border-radius: 4px;
    background: #fdecea;
    color: #c62828;
    font-size: 14px;
    line-height: 1.4;
}

/* ---- success screen ------------------------------------------------------- */

.sg-success-title {
    font-family: 'Sage Headline', 'Sage Text', Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #14161a;
    margin: 0 0 10px;
}

.sg-success-text {
    font-size: 15px;
    color: #14161a;
    margin: 0 0 6px;
}

.sg-success-meta {
    margin: 12px 0 0;
    font-size: 13px;
    color: #5f6368;
}

.sg-mono {
    font-family: Consolas, Menlo, monospace;
    font-size: 0.85em;
    background: #f1f3f4;
    padding: 1px 5px;
    border-radius: 3px;
}

.sg-success-link {
    display: inline-block;
    margin-top: 18px;
    color: #14161a;
    font-weight: 600;
    text-decoration: underline;
}
