/*
 * Installed-app (standalone PWA) look for the login / register pages.
 * Every rule must stay scoped under html.is-pwa so the regular website is unaffected.
 */

html.is-pwa,
html.is-pwa body {
    background: #060b14;
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

html.is-pwa #magic-cursor,
html.is-pwa .fe-site-top,
html.is-pwa .pwa-hide {
    display: none !important;
}

html.is-pwa .pwa-only[hidden] {
    display: flex !important;
}

html.is-pwa body.frontend-futuristic .fe-auth-page.form-section {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0) !important;
    background:
        radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--color-primary) 20%, transparent), transparent 65%),
        #060b14 !important;
}

html.is-pwa body.frontend-futuristic .fe-auth-page__decor,
html.is-pwa body.frontend-futuristic .fe-auth-page__promo {
    display: none !important;
}

html.is-pwa body.frontend-futuristic .fe-auth-page__container {
    max-width: 480px !important;
    margin: 0 auto;
    padding: 32px 20px 28px !important;
}

html.is-pwa body.frontend-futuristic .fe-auth-page__row {
    display: block !important;
    margin: 0 !important;
}

html.is-pwa body.frontend-futuristic .fe-auth-page__form-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 0;
    background: none;
    box-shadow: none;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card__inner {
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    overflow: visible;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card__glow {
    display: none;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .pwa-app-brand {
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .pwa-app-brand img {
    display: block;
    max-height: 44px;
    max-width: 70%;
    width: auto;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card .form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card .form-title::before {
    display: none;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card .form-inner input {
    min-height: 52px;
    font-size: 16px;
    border-radius: 14px !important;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card .i-btn.btn--lg {
    min-height: 54px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px !important;
}

html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card .have-account {
    margin-top: 1.5rem !important;
    font-size: 0.95rem;
}

@media (min-width: 576px) {
    html.is-pwa body.frontend-futuristic .fe-auth-page .fe-auth-card__inner {
        padding: 2rem;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: linear-gradient(165deg, rgba(14, 20, 35, 0.92), rgba(6, 10, 20, 0.96));
    }
}
