/* FRVME GYM — AUTH V3 */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    background:
        #f5f6f8
        url('/assets/gym-background.png')
        center / cover fixed no-repeat;
    color: #191a1d;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.auth-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 22px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 34px;
    animation: authAppear .4s ease both;
}

.auth-logo {
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -2.8px;
    line-height: 1;
}

.auth-brand-subtitle {
    margin-top: 11px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #858991;
    padding-left: 5px;
}

.auth-container {
    width: 100%;
    max-width: 390px;
    animation: authAppear .4s .08s ease both;
}

.auth-card {
    padding: 27px 24px;
    background: rgba(255,255,255,.57);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 25px;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow:
        0 18px 55px rgba(30,35,45,.075),
        inset 0 1px 0 rgba(255,255,255,.8);
}

.auth-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 27px;
    border-bottom: 1px solid rgba(30,30,30,.09);
}

.auth-tab {
    position: relative;
    padding: 0 0 15px;
    border: 0;
    background: transparent;
    color: #a1a4aa;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease;
}

.auth-tab.active {
    color: #1c1d20;
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: #242529;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: authFormAppear .25s ease both;
}

.auth-input {
    display: block;
    width: 100%;
    height: 53px;
    margin-bottom: 12px;
    padding: 0 16px;
    border: 1px solid #e6e8eb;
    border-radius: 14px;
    background: rgba(249,250,251,.87);
    color: #17181b;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition:
        border-color .2s,
        background .2s,
        box-shadow .2s;
}

.auth-input:focus {
    background: #fff;
    border-color: #777b82;
    box-shadow: 0 0 0 3px rgba(30,30,30,.045);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #17181b;
    -webkit-box-shadow:
        0 0 0 1000px #f7f8fa inset;
    box-shadow:
        0 0 0 1000px #f7f8fa inset;
    transition: background-color 9999s ease-out;
}

.auth-password {
    position: relative;
}

.auth-password .auth-input {
    padding-right: 87px;
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 37px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 12px;
    cursor: pointer;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 9px 0 22px;
    font-size: 12px;
    color: #60636a;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: #242529;
}

.auth-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: #242529;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.auth-primary:hover {
    background: #111215;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.auth-primary:active {
    transform: scale(.98);
}

.auth-button-arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.auth-primary:hover .auth-button-arrow {
    transform: translate(3px,-3px);
}

.auth-primary.loading {
    opacity: .75;
    cursor: wait;
}

.auth-primary.loading .auth-button-arrow {
    animation: authPulse .8s ease infinite alternate;
}

.auth-error {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #fff0f0;
    color: #b33;
    font-size: 13px;
}

.auth-accounts-title {
    margin: 0 0 15px;
    font-size: 14px;
    font-weight: 700;
}



.auth-add-account {
    display: block;
    width: 100%;
    margin-top: 18px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}

.auth-hidden {
    display: none !important;
}

@keyframes authAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authFormAppear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authPulse {
    from { opacity: .4; }
    to { opacity: 1; }
}

@media (max-width: 430px) {
    .auth-page {
        padding: 25px 21px;
    }

    .auth-brand {
        margin-bottom: 31px;
    }

    .auth-card {
        padding: 25px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* FRVME AUTH V3 — GLASS CARD / MATTE INPUTS */

/* Основная стеклянная карточка */
.auth-card {
    position: relative;
    isolation: isolate;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.52) 0%,
        rgba(255, 255, 255, 0.27) 48%,
        rgba(255, 255, 255, 0.42) 100%
    );

    border: 1px solid rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);

    box-shadow:
        0 24px 65px rgba(30, 35, 45, 0.11),
        0 5px 18px rgba(30, 35, 45, 0.035),
        inset 0 2px 1px rgba(255, 255, 255, 0.95),
        inset 0 -1px 1px rgba(255, 255, 255, 0.45);
}

/* Световой блик на стекле */
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;

    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.08) 32%,
        transparent 65%,
        rgba(255, 255, 255, 0.18) 100%
    );
}

/* Поля — матовые, без стеклянного эффекта */
.auth-input {
    background: #f0f1f3;
    border: 1px solid #e5e7eb;

    box-shadow: none;
}

.auth-input:focus {
    background: #f7f8fa;
    border-color: #737780;

    box-shadow: 0 0 0 3px rgba(30, 35, 45, 0.055);
}

/* Убираем голубой цвет автозаполнения */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #17181b;
    -webkit-box-shadow: 0 0 0 1000px #f0f1f3 inset;
    box-shadow: 0 0 0 1000px #f0f1f3 inset;
    border: 1px solid #e5e7eb;
}


/* FRVME AUTH — LIQUID GLASS V4 */

.auth-card {
    position: relative;
    isolation: isolate;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.32) 0%,
        rgba(255,255,255,0.12) 48%,
        rgba(255,255,255,0.27) 100%
    );

    border: 1px solid rgba(255,255,255,0.95);

    backdrop-filter: blur(13px) saturate(125%);
    -webkit-backdrop-filter: blur(13px) saturate(125%);

    box-shadow:
        0 24px 55px rgba(31,38,51,0.12),
        0 6px 16px rgba(31,38,51,0.04),
        inset 0 2px 1px rgba(255,255,255,0.95),
        inset 1px 0 0 rgba(255,255,255,0.65),
        inset -1px 0 0 rgba(255,255,255,0.45),
        inset 0 -1px 0 rgba(255,255,255,0.55);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;

    background: linear-gradient(
        125deg,
        rgba(255,255,255,0.38) 0%,
        rgba(255,255,255,0.05) 30%,
        transparent 65%,
        rgba(255,255,255,0.10) 100%
    );
}

/* Поля остаются матовыми */
.auth-input {
    background: #f0f1f3;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.auth-input:focus {
    background: #f7f8fa;
    border-color: #737780;
    box-shadow: 0 0 0 3px rgba(30,35,45,0.055);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #17181b;
    -webkit-box-shadow: 0 0 0 1000px #f0f1f3 inset;
    box-shadow: 0 0 0 1000px #f0f1f3 inset;
}


/* FRVME AUTH — VOLUMETRIC GLASS V7 */

.auth-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    /* Объём формируется самой поверхностью */
    background:
        radial-gradient(
            ellipse 100% 70% at 18% 0%,
            rgba(255,255,255,0.82) 0%,
            rgba(255,255,255,0.22) 60%,
            transparent 100%
        ),
        linear-gradient(
            165deg,
            rgba(255,255,255,0.38) 0%,
            rgba(239,243,249,0.17) 42%,
            rgba(205,215,230,0.28) 100%
        );

    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 25px;

    backdrop-filter: blur(15px) saturate(140%);
    -webkit-backdrop-filter: blur(15px) saturate(140%);

    box-shadow:
        0 38px 65px -22px rgba(40,48,65,0.28),
        0 14px 30px -12px rgba(40,48,65,0.12),
        inset 0 2px 2px rgba(255,255,255,0.95),
        inset 0 -5px 12px rgba(130,145,170,0.13),
        inset 5px 0 12px rgba(255,255,255,0.30),
        inset -5px 0 12px rgba(130,145,170,0.08);
}

/* Широкий мягкий блик внутри стекла */
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;

    background:
        radial-gradient(
            ellipse 85% 55% at 15% 0%,
            rgba(255,255,255,0.65),
            transparent 80%
        ),
        linear-gradient(
            115deg,
            rgba(255,255,255,0.20),
            transparent 45%,
            rgba(125,145,175,0.07)
        );
}

/* Вместо второй рамки — мягкое затемнение нижней части */
.auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;

    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(140,155,180,0.075) 100%
    );
}

/* Матовые поля сохраняем */
.auth-card .auth-input {
    background: #eef0f2;
    border: 1px solid #e2e5e9;
    box-shadow: none;
}

.auth-card .auth-input:focus {
    background: #f7f8fa;
    border-color: #777b82;
    box-shadow: 0 0 0 3px rgba(30,35,45,0.055);
}


/* FRVME AUTH — GLASS SURFACE V8 */

/* Сохраняем объём V7, усиливаем стеклянную поверхность */
.auth-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse 110% 75% at 8% -12%,
            rgba(255,255,255,0.58) 0%,
            rgba(255,255,255,0.10) 55%,
            transparent 85%
        ),
        linear-gradient(
            155deg,
            rgba(255,255,255,0.32) 0%,
            rgba(255,255,255,0.08) 42%,
            rgba(212,222,239,0.22) 100%
        );

    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);

    box-shadow:
        0 38px 65px -22px rgba(40,48,65,0.28),
        0 14px 30px -12px rgba(40,48,65,0.12),
        inset 0 2px 2px rgba(255,255,255,0.95),
        inset 0 -5px 12px rgba(130,145,170,0.13),
        inset 5px 0 12px rgba(255,255,255,0.30),
        inset -5px 0 12px rgba(130,145,170,0.08);
}

/* Отражение света на стеклянной поверхности */
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;

    background:
        linear-gradient(
            118deg,
            rgba(255,255,255,0.48) 0%,
            rgba(255,255,255,0.13) 19%,
            transparent 39%,
            transparent 68%,
            rgba(255,255,255,0.18) 100%
        ),
        radial-gradient(
            ellipse 75% 42% at 75% 100%,
            rgba(200,214,235,0.18),
            transparent 100%
        );
}

/* Нижняя часть остаётся объёмной */
.auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border: 0;
    border-radius: inherit;

    background: linear-gradient(
        180deg,
        transparent 48%,
        rgba(175,190,212,0.035) 72%,
        rgba(140,160,190,0.09) 100%
    );
}

/* Поля сохраняем матовыми */
.auth-card .auth-input {
    background: #eef0f2;
    border: 1px solid #e2e5e9;
    box-shadow: none;
}

.auth-card .auth-input:focus {
    background: #f7f8fa;
    border-color: #777b82;
    box-shadow: 0 0 0 3px rgba(30,35,45,0.055);
}


/* FRVME AUTH — TRANSPARENT GLASS V9 */

.auth-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    /* Более прозрачная стеклянная поверхность */
    background:
        radial-gradient(
            ellipse 95% 65% at 8% 0%,
            rgba(255,255,255,0.30),
            transparent 75%
        ),
        linear-gradient(
            155deg,
            rgba(255,255,255,0.20) 0%,
            rgba(255,255,255,0.045) 48%,
            rgba(215,225,240,0.13) 100%
        );

    border: 1px solid rgba(255,255,255,0.75);

    /* Меньше размытия, чтобы видеть фон */
    backdrop-filter: blur(7px) saturate(125%);
    -webkit-backdrop-filter: blur(7px) saturate(125%);

    /* Сохраняем объём */
    box-shadow:
        0 38px 65px -22px rgba(40,48,65,0.28),
        0 14px 30px -12px rgba(40,48,65,0.12),
        inset 0 2px 2px rgba(255,255,255,0.95),
        inset 0 -5px 12px rgba(130,145,170,0.13),
        inset 5px 0 12px rgba(255,255,255,0.30),
        inset -5px 0 12px rgba(130,145,170,0.08);
}

/* Тонкое отражение света */
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;

    background: linear-gradient(
        125deg,
        rgba(255,255,255,0.22),
        transparent 35%,
        transparent 70%,
        rgba(255,255,255,0.08)
    );
}

/* Нижняя часть стекла сохраняет глубину */
.auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border: 0;
    border-radius: inherit;

    background: linear-gradient(
        to bottom,
        transparent 65%,
        rgba(140,160,190,0.055) 100%
    );
}

/* Матовые непрозрачные поля */
.auth-card .auth-input {
    background: #eef0f2;
    border: 1px solid #e2e5e9;
    box-shadow: none;
}

.auth-card .auth-input:focus {
    background: #f7f8fa;
    border-color: #777b82;
    box-shadow: 0 0 0 3px rgba(30,35,45,0.055);
}


/* FRVME — CUSTOM BRAND LOGO */

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* FRVME — логотип ближе к карточке */




/* FRVME AUTH — LOGO SPACING */
.auth-brand {
    margin-bottom: 15px;
}


/* FRVME — Saved Accounts */

.auth-account-row {
    transition: background-color 250ms ease, border-color 250ms ease;

    display: flex;
    align-items: center;
    width: 100%;
    min-height: 78px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px;
    background: rgba(255,255,255,.62);
    box-shadow: 0 8px 28px rgba(70,85,110,.055);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-account-row .auth-account {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    min-height: 60px;
    gap: 13px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    cursor: pointer;
}

.auth-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #e9ebee;
    color: #777e87;
    font-size: 17px;
    font-weight: 600;
}

.auth-account-name {
    flex: 1;
    min-width: 0;
    color: #292d33;
    font-size: 15px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-account-arrow {
    color: #a4aab2;
    font-size: 23px;
    font-weight: 300;
}

.auth-account-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 6px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(130,140,155,.14);
    border-radius: 0;
    background: transparent;
    color: #a2a8b0;
    font-size: 21px;
    font-weight: 300;
    cursor: pointer;
}

.auth-account-remove:hover {
    color: #343941;
}

.auth-account-row:active {
    background: rgba(255,255,255,.85);
}


.auth-account-row:hover {
    background: rgba(255,255,255,.82);
    border-color: rgba(255,255,255,1);
}
