.ba-email-auth {
    min-height: calc(100vh - 70px);
    padding: 48px 20px;
    background: radial-gradient(ellipse at 15% 10%, #d9f7ee99, transparent 45%), radial-gradient(ellipse at 90% 85%, #dce8ff99, transparent 45%), #f4f7fb;
    color: #18243b;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
}
.ba-email-auth *, .ba-email-auth *::before, .ba-email-auth *::after { box-sizing: border-box; }
.ba-email-auth [hidden] { display: none !important; }
.ba-email-auth__card { max-width: 490px; margin: 0 auto; padding: 32px 36px; background: #fff; border: 1px solid #e2e9f1; border-radius: 24px; box-shadow: 0 16px 48px #24436b08; }
.ba-email-auth__mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; color: #00a781; background: #e5f7f1; }
.ba-email-auth h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.3; font-family: Montserrat, sans-serif; font-weight: 800; letter-spacing: -.8px; }
.ba-email-auth__intro { margin: 0 0 20px; color: #75839a; font-size: 15px; line-height: 1.65; }
.ba-email-auth__label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.ba-email-auth__input-wrap { position: relative; display: flex; align-items: center; }
.ba-email-auth__input-wrap > svg { position: absolute; left: 16px; color: #8b99ad; pointer-events: none; }
.ba-email-auth input[type="email"], .ba-email-auth input[type="password"], .ba-email-auth input[type="text"] { display: block; width: 100%; height: 54px; padding: 0 16px; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; color: #30415f; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.ba-email-auth #auth-email { padding-left: 48px; }
.ba-email-auth input:focus { outline: none; border-color: #00b58b; box-shadow: 0 0 0 4px #00b58b12; }
.ba-email-auth input::placeholder { color: #a1adbe; }
.ba-email-auth__input-wrap--password input { padding-right: 54px; }
.ba-email-auth__input-wrap--password button { position: absolute; right: 7px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #75839a; cursor: pointer; }
.ba-email-auth .ba-email-auth__button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 16px; padding: 14px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 14px; line-height: 1.4; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.ba-email-auth .ba-email-auth__button--primary { color: #fff; background: linear-gradient(100deg, #13c779, #00b496); box-shadow: 0 4px 12px #00b58b18; }
.ba-email-auth .ba-email-auth__button--primary:hover { color: #fff; background: linear-gradient(100deg, #10b96f, #00a58a); box-shadow: 0 6px 16px #00b58b25; }
.ba-email-auth .ba-email-auth__button--primary span { font-size: 20px; line-height: 1; }
.ba-email-auth .ba-email-auth__button--secondary { color: #30415f; background: #fff; border-color: #e2e9f1; }
.ba-email-auth .ba-email-auth__button--secondary:hover { color: #30415f; background: #f7fafc; border-color: #c9d5e5; }
.ba-email-auth button:disabled { opacity: .6; cursor: wait; }
.ba-email-auth__divider { display: flex; align-items: center; gap: 16px; margin: 24px 0 8px; color: #8b99ad; font-size: 13px; }
.ba-email-auth__divider::before, .ba-email-auth__divider::after { content: ''; flex: 1; height: 1px; background: #e8edf4; }
.ba-email-auth__socials img { flex-shrink: 0; }
.ba-email-auth__selected { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; padding: 11px 14px; border-radius: 10px; background: #f4f7fb; font-size: 14px; font-weight: 500; }
.ba-email-auth__selected span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ba-email-auth__selected button { flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #75839a; cursor: pointer; border-radius: 6px; }
.ba-email-auth__recovery { display: block; margin: 14px 0 22px; text-align: right; font-size: 13px; color: #00a781; text-decoration: none; }
.ba-email-auth__consent { margin-top: 18px; display: flex; align-items: flex-start; gap: 12px; color: #75839a; font-size: 13px; line-height: 1.6; }
.ba-email-auth__consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #00b58b; }
.ba-email-auth__consent a { color: #00a781; }
.ba-email-auth input.ba-email-auth__code { text-align: center; font-size: 24px; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.ba-email-auth__resend, .ba-email-auth__back { display: block; width: 100%; margin-top: 20px; padding: 4px; border: 0; background: transparent; color: #00a781; font: inherit; font-size: 13px; cursor: pointer; }
.ba-email-auth__back { color: #75839a; margin-top: 8px; }
.ba-email-auth__error { margin-bottom: 20px; padding: 12px 14px; border: 1px solid #fad7d7; border-radius: 10px; color: #b34a4a; background: #fff5f5; font-size: 13px; line-height: 1.6; }
.ba-email-auth__footnote { margin: 24px auto 0; color: #8b99ad; text-align: center; font-size: 13px; line-height: 1.6; }
.ba-email-auth a:focus-visible, .ba-email-auth button:focus-visible { outline: 3px solid #3181d4; outline-offset: 3px; }
@media (max-width: 540px) {
    .ba-email-auth { padding: 28px 15px 36px; }
    .ba-email-auth__card { padding: 28px 24px; border-radius: 20px; }
    .ba-email-auth h1 { font-size: 24px; }
    .ba-email-auth__mark { width: 40px; height: 40px; border-radius: 12px; }
    .ba-email-auth__intro { font-size: 14px; }
    .ba-email-auth__footnote { max-width: 290px; }
}


.ba-email-auth__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ba-email-auth .ba-email-auth__join { max-width: 250px; color: #06866f; font-size: calc(13px + 2pt); line-height: 1.5; font-weight: 600; text-align: right; text-decoration: none; }
.ba-email-auth .ba-email-auth__join:hover { color: #045e4d; text-decoration: underline; }
.ba-email-auth__mark svg { width: 26px; height: 26px; }

.ba-email-auth form .ba-email-auth__selected { margin-top: 0; border: 1px solid transparent; }
.ba-email-auth .ba-email-auth__selected input[autocomplete="username"] { min-width: 0; flex: 1; height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 14px; box-shadow: none; }
.ba-email-auth form .ba-email-auth__selected:focus-within { border-color: #00b58b; box-shadow: 0 0 0 4px #00b58b12; }
