/* REDOR_AUTH_ACTION_GATE_CSS_V1 */
body.auth-action-gate-open {
    overflow: hidden;
}

.auth-action-gate[hidden] {
    display: none !important;
}

.auth-action-gate {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .52);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.auth-action-gate-card {
    position: relative;
    width: min(100%, 420px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 30px 26px 26px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    text-align: center;
}

.auth-action-gate-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font: 400 26px/1 system-ui, sans-serif;
    cursor: pointer;
}

.auth-action-gate-close:hover,
.auth-action-gate-close:focus-visible {
    background: #e2e8f0;
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.auth-action-gate-logo img {
    display: block;
    width: auto;
    height: 34px;
    max-width: none;
    max-height: none;
    margin: 0 auto 18px;
}

.auth-action-gate h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.auth-action-gate p {
    margin: 9px auto 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.auth-action-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
}

.auth-action-google-button {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
    overflow: visible;
    border-radius: 5px;
}

.auth-action-google-button > div:not(:last-child) {
    display: none !important;
}

.auth-action-google-button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid #0f766e;
    border-radius: 5px;
    box-shadow: none;
    pointer-events: none;
}


.auth-action-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 12px;
}

.auth-action-separator::before,
.auth-action-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-action-options {
    display: grid;
    gap: 10px;
}

.auth-action-options a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease;
}

.auth-action-create:hover,
.auth-action-create:focus-visible,
.auth-action-login:hover,
.auth-action-login:focus-visible {
    background: #f8fafc;
    border-color: #94a3b8;
}

@media (max-width: 520px) {
    .auth-action-gate {
        align-items: end;
        padding: 0;
    }

    .auth-action-gate-card {
        width: 100%;
        max-height: calc(100vh - 16px);
        padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .auth-action-gate:not([hidden]) .auth-action-gate-card {
        animation: auth-action-gate-in .18s ease-out;
    }

    @keyframes auth-action-gate-in {
        from { opacity: 0; transform: translateY(12px) scale(.985); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}
