/* ILNM Agent Auth
   This page deliberately keeps the native Listeo form markup/styles intact.
   The rules below only provide a safe wrapper and a fallback Agent/Owner switch. */

.ilnm-agent-auth {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.ilnm-agent-auth-card {
    width: min(760px, calc(100% - 32px));
    margin: 48px auto;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.ilnm-agent-auth-card h3 {
    margin: 0 0 10px;
    color: #222222;
}

.ilnm-agent-auth-card p {
    margin: 0 0 18px;
    color: #6d6d72;
}

.ilnm-agent-auth-button,
.ilnm-agent-auth-card .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 10px 22px;
    text-decoration: none;
}

.ilnm-agent-auth-role-fallback {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 22px;
}

.ilnm-agent-auth-role-fallback button {
    min-height: 56px;
    border: 0;
    border-radius: 4px;
    background: #efefef;
    color: #777777;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    transition: background 160ms ease, color 160ms ease;
}

.ilnm-agent-auth-role-fallback button.active {
    background: #66676b;
    color: #ffffff;
}

.ilnm-agent-auth-role-fallback button:focus-visible {
    outline: 2px solid #66676b;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .ilnm-agent-auth {
        width: min(100%, calc(100% - 22px));
    }

    .ilnm-agent-auth-role-fallback {
        gap: 10px;
    }

    .ilnm-agent-auth-role-fallback button {
        min-height: 50px;
    }
}

/* v2.3: the ILNM auth shortcode is a silent marker only. */
.ilnm-agent-auth-marker {
    display: none !important;
}

/* v2.4 Google Identity Services bridge. Keeps Listeo layout intact. */
.ilnm-agent-google-auth {
    width: 100%;
    margin: 18px 0 20px;
    text-align: center;
}

.ilnm-agent-google-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 14px;
    color: #8b8b90;
    font-size: 13px;
    line-height: 1.4;
}

.ilnm-agent-google-divider::before,
.ilnm-agent-google-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.ilnm-agent-google-role-note {
    margin: 0 0 10px;
    color: #66676b;
    font-size: 13px;
    line-height: 1.35;
}

.ilnm-agent-google-button {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.ilnm-agent-google-status {
    display: none;
    margin: 10px auto 0;
    max-width: 420px;
    border-radius: 8px;
    padding: 9px 12px;
    background: rgba(102, 103, 107, 0.08);
    color: #66676b;
    font-size: 13px;
    line-height: 1.4;
}

.ilnm-agent-google-status.active {
    display: block;
}

.ilnm-agent-google-status.is-loading {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.ilnm-agent-google-status.is-error {
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
}

@media (max-width: 767px) {
    .ilnm-agent-google-auth {
        margin: 16px 0 18px;
    }

    .ilnm-agent-google-divider {
        gap: 8px;
        font-size: 12px;
    }
}
