body.body--auth:has(.mf-register-shell) {
    color-scheme: dark;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
}

html:has(.mf-register-shell) {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
}

.mf-register-shell {
    place-items: start center;
    min-height: 100svh;
    padding-block: clamp(14px, 2.6vh, 30px);
    overflow: visible;
}

.mf-register-shell .mf-auth-card {
    width: min(100%, 580px);
}

.mf-register-card {
    padding: clamp(22px, 2.8vw, 32px) clamp(24px, 3vw, 34px);
}

.mf-register-shell .mf-auth-brand {
    margin-bottom: 10px;
}

.mf-register-shell .mf-auth-brand img {
    width: clamp(56px, 6.5vh, 68px);
    height: clamp(56px, 6.5vh, 68px);
}

.mf-register-eyebrow {
    margin: 0 0 8px;
    color: rgba(203, 195, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
}

.mf-register-shell .mf-auth-title {
    font-size: clamp(1.62rem, 2.8vw, 2.08rem);
    line-height: 1.12;
}

.mf-register-shell .mf-auth-subtitle {
    max-width: 450px;
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.42;
}

.mf-register-providers {
    margin-top: 16px;
    gap: 10px;
}

.mf-auth-provider--disabled {
    color: rgba(236, 238, 250, 0.54);
    cursor: not-allowed;
}

.mf-auth-provider--disabled,
.mf-auth-provider--disabled:hover,
.mf-auth-provider--disabled:focus-visible {
    border-color: rgba(139, 132, 191, 0.25);
    background: rgba(10, 12, 20, 0.42);
    box-shadow: none;
}

.mf-auth-provider--disabled .auth-social-btn__visual {
    min-height: 44px;
    color: rgba(236, 238, 250, 0.64);
    background: transparent;
}

.mf-auth-provider--disabled small {
    margin: -7px 16px 11px;
    color: rgba(213, 218, 240, 0.48);
    font-size: 0.75rem;
    line-height: 1.25;
    text-align: center;
}

.mf-register-provider-icon {
    border: 1px solid rgba(236, 238, 250, 0.2);
    border-radius: 7px;
    color: rgba(247, 247, 251, 0.78);
    font-size: 0.78rem;
    font-weight: 600;
}

.mf-register-provider-icon--apple {
    border-radius: 9px;
}

.mf-register-form {
    gap: 10px;
}

.mf-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mf-register-form select.mf-auth-input {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(236, 238, 250, 0.72) 50%),
        linear-gradient(135deg, rgba(236, 238, 250, 0.72) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.mf-register-form .mf-auth-input {
    min-height: 44px;
    padding-inline: 14px;
}

.mf-register-form .mf-auth-email-field,
.mf-register-form .mf-auth-password-step {
    gap: 6px;
}

.mf-register-form .mf-auth-email-field span,
.mf-register-form .login-password-label {
    font-size: 0.86rem;
}

.mf-register-form .mf-auth-input[readonly] {
    color: rgba(247, 247, 251, 0.78);
    background: rgba(7, 9, 17, 0.48);
}

.mf-register-shell .mf-auth-provider {
    min-height: 44px;
}

.mf-register-shell .auth-google-signin__visual,
.mf-register-shell .auth-social-btn__visual {
    min-height: 44px;
    font-size: 0.94rem;
}

.mf-register-shell .mf-auth-provider .auth-google-signin__button {
    min-height: 44px;
}

.mf-register-shell .mf-auth-divider {
    margin: 14px auto 14px;
}

.mf-register-invitation,
.mf-register-plan {
    display: grid;
    gap: 12px;
    width: min(100%, 400px);
    margin: 0 auto 18px;
    padding: 14px;
    border: 1px solid rgba(167, 151, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.mf-register-invitation__choir {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mf-register-invitation__logo {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
}

.mf-register-invitation__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mf-register-invitation__choir span,
.mf-register-invitation__meta span,
.mf-register-plan span {
    display: block;
    color: rgba(224, 228, 246, 0.62);
    font-size: 0.78rem;
    line-height: 1.35;
}

.mf-register-invitation__choir strong,
.mf-register-invitation__meta strong,
.mf-register-plan strong {
    color: #f7f7fb;
    font-weight: 600;
}

.mf-register-invitation__choir strong {
    display: block;
    overflow-wrap: anywhere;
}

.mf-register-invitation__meta {
    display: grid;
    gap: 5px;
}

.mf-register-plan {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin: 4px 0 2px;
    width: 100%;
}

.mf-register-plan > div:last-child {
    text-align: right;
}

.register-billing-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.register-billing-option {
    display: block;
    cursor: pointer;
}

.register-billing-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.register-billing-option__card {
    display: grid;
    gap: 5px;
    min-height: 100%;
    padding: 12px;
    border: 1px solid rgba(139, 132, 191, 0.4);
    border-radius: 13px;
    background: rgba(6, 8, 15, 0.46);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.register-billing-option__title,
.register-billing-option__price {
    color: #f7f7fb;
    font-size: 0.9rem;
    line-height: 1.25;
}

.register-billing-option__price {
    font-weight: 600;
}

.register-billing-option__hint {
    color: rgba(224, 228, 246, 0.62);
    font-size: 0.74rem;
    line-height: 1.3;
}

.register-billing-option__input:checked + .register-billing-option__card {
    border-color: rgba(168, 139, 255, 0.82);
    background: rgba(124, 92, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.mf-register-terms {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin: 2px 0 4px;
    color: rgba(224, 228, 246, 0.68);
    font-size: 0.82rem;
    line-height: 1.42;
}

.mf-register-terms input {
    margin-top: 2px;
}

.mf-register-terms a,
.mf-register-login-link a {
    color: rgba(203, 195, 255, 0.92);
    text-decoration: none;
}

.mf-register-terms a:hover,
.mf-register-login-link a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.mf-register-login-link {
    margin: 16px auto 0;
    color: rgba(224, 228, 246, 0.66);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.mf-register-login-link a {
    font-weight: 600;
}

@media (max-width: 640px) {
    .mf-register-shell {
        padding: 14px 16px 22px;
    }

    .mf-register-card {
        padding: 24px 20px;
    }

    .mf-register-shell .mf-auth-title {
        font-size: clamp(1.46rem, 7vw, 1.86rem);
    }

    .mf-register-grid,
    .register-billing-options,
    .mf-register-plan {
        grid-template-columns: 1fr;
    }

    .mf-register-plan > div:last-child {
        text-align: left;
    }

    .mf-auth-provider--disabled small {
        margin-inline: 12px;
    }
}

@media (max-height: 860px) and (min-width: 760px) {
    .mf-register-shell {
        padding-block: 14px;
    }

    .mf-register-card {
        padding-block: 22px;
    }

    .mf-register-shell .mf-auth-brand img {
        width: 54px;
        height: 54px;
    }

    .mf-register-shell .mf-auth-title {
        font-size: 1.78rem;
    }

    .mf-register-shell .mf-auth-subtitle {
        font-size: 0.88rem;
        line-height: 1.36;
    }

    .mf-register-providers,
    .mf-register-form {
        gap: 9px;
    }

    .mf-register-form .mf-auth-input,
    .mf-register-shell .mf-auth-provider,
    .mf-register-shell .auth-google-signin__visual,
    .mf-register-shell .auth-social-btn__visual,
    .mf-register-shell .mf-auth-provider .auth-google-signin__button {
        min-height: 42px;
    }

    .mf-register-shell .mf-auth-divider {
        margin-block: 11px;
    }
}
