/* Guest auth (login, register, OTP) — uses app.css theme tokens only */

.guest-auth {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.guest-auth__head {
    text-align: center;
    margin-bottom: 30px;
}

.guest-auth__head .guest-page__logo {
    width: min(172px, 52vw);
    height: auto;
    margin: 0 auto 14px;
    object-position: center;
}

.guest-auth__tagline {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.5;
    margin: 0;
}

.guest-auth__card {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg-2) 96%, white 4%), var(--bg-2));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .guest-auth__card {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.guest-auth__card .ed-input-group:last-of-type {
    margin-bottom: 0;
}

.guest-auth__card .ed-btn {
    margin-top: 8px;
}

.guest-auth__field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.guest-auth__field-head .ed-input-label {
    margin-bottom: 0;
}

.guest-auth__text-link {
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    font-family: var(--font);
    color: var(--text-3);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guest-auth__text-link:hover {
    color: var(--accent);
}

.guest-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 17px;
    color: var(--text-4);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-auth__divider::before,
.guest-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.guest-auth__alt {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guest-auth__oauth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.guest-auth__oauth .ed-btn-outline {
    padding: 12px 10px;
    font-size: 13px;
}

.guest-auth__sent {
    padding: 8px 0 4px;
    text-align: center;
}

.guest-auth__sent-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 8px;
}

.guest-auth__sent-sub {
    font-size: 13px;
    color: var(--text-3);
    margin: 0;
}

.theme-toggle--guest {
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
}

.theme-toggle--guest .theme-toggle-btn {
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 7px;
}

.guest-page .ed-form-link {
    margin-top: 22px;
}

@media (max-height: 740px) {
    .guest-auth__head { margin-bottom: 20px; }
    .guest-auth__head .guest-page__logo { width: min(150px, 46vw); margin-bottom: 9px; }
    .guest-auth__tagline { font-size: 13px; }
    .guest-auth__card { padding: 17px; }
    .guest-auth__divider { margin: 17px 0 13px; }
    .guest-page .ed-form-link { margin-top: 17px; }
}

@media (max-width: 380px) {
    .guest-auth__oauth {
        grid-template-columns: 1fr;
    }
}

/* Loading: tek BenefitLoader — arka plandaki hero/form/footer üst üste binmesin */
.guest-auth--busy-host.guest-auth--busy {
    min-height: min(72vh, 520px);
}

.guest-auth--busy-host.guest-auth--busy > *:not(.action-busy-overlay) {
    visibility: hidden;
    pointer-events: none;
}

.guest-auth--busy-host.guest-auth--busy .action-busy-overlay--contained {
    background: rgba(5, 5, 6, 0.94);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.guest-page:has(.guest-auth--busy) .app-footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
