:root {
    --ta-bg-1: #edf1f6;
    --ta-bg-2: #e3e9f1;
    --ta-ink: #0f172a;
    --ta-muted: #64748b;
    --ta-accent: #2563eb;
    --ta-accent-2: #1d4ed8;
    --ta-card: rgba(255, 255, 255, 0.92);
    --ta-border: rgba(148, 163, 184, 0.32);
    --ta-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
    --ta-focus: 0 0 0 3px rgba(37, 99, 235, 0.2);
    --ta-danger: #b91c1c;
    --ta-success: #166534;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Arial", sans-serif;
    color: var(--ta-ink);
    background:
        radial-gradient(120% 100% at 0% 0%, #f8fbff 0%, transparent 55%),
        radial-gradient(120% 100% at 100% 0%, #eef2f8 0%, transparent 55%),
        linear-gradient(165deg, var(--ta-bg-1) 0%, var(--ta-bg-2) 100%);
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-x: hidden;
    transition: background 0.45s ease, color 0.3s ease;
}

body.ta-no-scroll {
    overflow: hidden;
}

body::before,
body::after {
    content: none;
}

body.ta-theme-register {
    background:
        radial-gradient(120% 110% at 0% 0%, #f0fdf4 0%, transparent 58%),
        radial-gradient(120% 110% at 100% 0%, #dcfce7 0%, transparent 58%),
        linear-gradient(165deg, #ecfdf5 0%, #d1fae5 100%);
}

.ta-bg {
    display: none;
}

.ta-shell {
    width: min(1040px, 100%);
    border: 1px solid var(--ta-border);
    background: var(--ta-card);
    backdrop-filter: blur(8px);
    border-radius: 26px;
    box-shadow:
        0 26px 58px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(96, 165, 250, 0.18),
        0 10px 34px rgba(96, 165, 250, 0.18),
        0 36px 110px rgba(37, 99, 235, 0.18),
        0 70px 150px rgba(125, 211, 252, 0.22);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    position: relative;
    z-index: 1;
    isolation: isolate;
    animation: taEnter 0.6s ease-out, taShellGlow 11s ease-in-out infinite;
}

.ta-shell::before {
    content: "";
    position: absolute;
    inset: -10% -8% -24% -8%;
    border-radius: 36px;
    background:
        radial-gradient(46% 30% at 18% 30%, rgba(96, 165, 250, 0.24), transparent 72%),
        radial-gradient(42% 28% at 84% 34%, rgba(37, 99, 235, 0.22), transparent 72%),
        radial-gradient(74% 48% at 50% 108%, rgba(125, 211, 252, 0.34), transparent 68%),
        radial-gradient(58% 42% at 50% 102%, rgba(37, 99, 235, 0.26), transparent 70%);
    filter: blur(42px);
    opacity: 0.84;
    pointer-events: none;
    z-index: 0;
    animation: taShellAura 13s ease-in-out infinite alternate;
}

.ta-shell::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -18%;
    height: 34%;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(96, 165, 250, 0.16), rgba(125, 211, 252, 0.32) 50%, rgba(37, 99, 235, 0.2)),
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.32), transparent 72%);
    filter: blur(34px);
    opacity: 0.82;
    pointer-events: none;
    z-index: 0;
    animation: taShellBottomGlow 11s ease-in-out infinite alternate;
}

.ta-shell > * {
    position: relative;
    z-index: 2;
}

.ta-brand {
    padding: 44px 38px;
    background: linear-gradient(160deg, #f8fbff 0%, #edf4ff 52%, #e5efff 100%);
    color: #0f2f54;
    position: relative;
    isolation: isolate;
    border-right: 1px solid #dbe5f3;
}

.ta-brand::after {
    content: none;
}

.ta-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 22px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 245, 255, 0.95) 100%);
    border: 1px solid rgba(86, 132, 196, 0.18);
    box-shadow:
        0 18px 40px rgba(37, 99, 235, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ta-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ta-shell[data-mode="register"] .ta-logo {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 253, 245, 0.94) 100%);
    border-color: rgba(16, 185, 129, 0.18);
    box-shadow:
        0 18px 38px rgba(16, 185, 129, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ta-brand h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
    letter-spacing: 0.01em;
}

.ta-brand p {
    margin: 14px 0 0;
    color: #36506d;
    font-size: 16px;
    line-height: 1.45;
    max-width: 28ch;
}

.ta-brand-desc--mobile {
    display: none;
}

.ta-points {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 10px;
}

.ta-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #274766;
}

.ta-points li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.16);
    flex: 0 0 auto;
}

.ta-forms {
    padding: 32px 30px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.94));
    display: flex;
    flex-direction: column;
}

.ta-switch {
    border: 1px solid var(--ta-border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    background: #eef4ff;
    position: relative;
    margin-bottom: 20px;
}

.ta-form-stage {
    overflow: visible;
    padding: 8px;
    margin: -8px;
    transition: height 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ta-switch::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ta-accent), var(--ta-accent-2));
    transition: transform 0.28s ease;
    box-shadow: 0 7px 14px rgba(29, 78, 216, 0.25);
}

.ta-shell[data-mode="register"] .ta-switch::before {
    transform: translateX(100%);
}

.ta-shell[data-mode="register"] {
    --ta-accent: #0f766e;
    --ta-accent-2: #0e9f6e;
    --ta-focus: 0 0 0 3px rgba(15, 118, 110, 0.2);
    border-color: rgba(16, 185, 129, 0.23);
}

.ta-shell[data-mode="register"] .ta-brand {
    background: linear-gradient(160deg, #f3fff9 0%, #e8fff6 52%, #dcfce7 100%);
    color: #064e3b;
    border-right-color: #b7e4cf;
}

.ta-shell[data-mode="register"] .ta-brand p,
.ta-shell[data-mode="register"] .ta-points li {
    color: #065f46;
}

.ta-shell[data-mode="register"] .ta-points li::before {
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.ta-shell[data-mode="register"] .ta-switch {
    background: #ecfdf5;
}

.ta-shell[data-mode="register"] .ta-forms {
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.76), rgba(236, 253, 245, 0.96));
}

.ta-shell[data-mode="register"] .ta-brand::after {
    content: none;
}

.ta-shell[data-mode="register"] .ta-logo {
    filter: none;
}

.ta-shell[data-mode="register"] .ta-switch::before {
    box-shadow: 0 7px 14px rgba(15, 118, 110, 0.25);
}

.ta-shell[data-mode="register"] .ta-pass-wrap .ta-eye {
    background: #ecfdf5;
    color: #0f766e;
}

.ta-shell[data-mode="register"] .ta-link {
    color: #0f766e;
}

.ta-shell[data-mode="register"] .ta-btn {
    background: linear-gradient(135deg, #0f766e, #0e9f6e);
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.26);
}

.ta-shell[data-mode="register"] .ta-btn:hover {
    box-shadow: 0 12px 20px rgba(15, 118, 110, 0.31);
}

.ta-switch button {
    border: 0;
    background: transparent;
    border-radius: 8px;
    height: 40px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    color: var(--ta-ink);
    z-index: 1;
    transition: color 0.2s ease;
}

.ta-switch button[aria-selected="true"] {
    color: #ffffff;
}

.ta-title {
    margin: 2px 0 4px;
    font-size: 24px;
    letter-spacing: 0.01em;
}

.ta-subtitle {
    margin: 0 0 18px;
    color: var(--ta-muted);
    font-size: 14px;
}

.ta-form {
    display: none;
    gap: 12px;
    animation: taFade 0.3s ease;
}

.ta-form.is-active {
    display: grid;
}

.ta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ta-field {
    display: grid;
    gap: 5px;
}

.ta-field label {
    font-size: 12px;
    font-weight: 700;
    color: #2d4961;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ta-field input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(19, 42, 62, 0.2);
    padding: 0 12px;
    font-size: 14px;
    color: #0f2538;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ta-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb, 0 0 0 4px rgba(37, 99, 235, 0.18);
    outline: 2px solid transparent;
}

.ta-field input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.ta-pass-wrap {
    position: relative;
}

.ta-pass-wrap .ta-eye {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 46px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: #e8efff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.ta-help {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-size: 13px;
    color: var(--ta-muted);
}

.ta-consent {
    padding: 11px 12px;
    border: 1px solid rgba(19, 42, 62, 0.12);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.92);
    color: #526579;
    font-size: 12px;
    line-height: 1.45;
}

.ta-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 700;
}

.ta-link:hover {
    text-decoration: underline;
}

.ta-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.ta-btn {
    margin-top: 2px;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 18px rgba(29, 78, 216, 0.26);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(29, 78, 216, 0.31);
}

.ta-btn:disabled {
    opacity: 0.78;
    cursor: not-allowed;
    transform: none;
}

.ta-btn--ghost {
    background: #eef4ff;
    color: #1d4ed8;
    box-shadow: none;
}

.ta-alt {
    margin-top: 10px;
    border: 1px solid rgba(19, 42, 62, 0.16);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    min-height: 46px;
    padding: 6px 14px 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #17374f;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ta-alt:hover,
.ta-alt:focus-visible {
    border-color: rgba(66, 133, 244, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
    box-shadow: 0 14px 28px rgba(66, 133, 244, 0.12);
    transform: translateY(-1px);
}

.ta-alt:focus-visible {
    outline: none;
}

.ta-alt__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    border: 1px solid rgba(19, 42, 62, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    flex: 0 0 auto;
}

.ta-alt__label {
    line-height: 1.2;
}

.ta-alt img {
    width: 18px;
    height: 18px;
    display: block;
}

.ta-note {
    margin-top: auto;
    padding-top: 14px;
    font-size: 12px;
    color: #6b8298;
}

.ta-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
}

.ta-alert--error {
    background: #fee2e2;
    color: var(--ta-danger);
    border: 1px solid #fecaca;
}

.ta-alert--success {
    background: #dcfce7;
    color: var(--ta-success);
    border: 1px solid #bbf7d0;
}

.ta-alert--client[hidden] {
    display: none;
}

.ta-register-state {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.88), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.08);
}

.ta-register-state__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ta-register-state__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #0f766e;
    background: #e7faf2;
    flex: 0 0 auto;
}

.ta-register-state__icon svg {
    width: 22px;
    height: 22px;
}

.ta-register-state__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ta-register-state__badge {
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    width: max-content;
    max-width: 100%;
}

.ta-register-state__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #16324a;
}

.ta-register-state__text,
.ta-register-state__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #466074;
}

.ta-register-state__email {
    min-height: 42px;
    padding: 0 13px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    color: #17374f;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.ta-register-actions {
    display: grid;
    gap: 10px;
}

.ta-register-actions--split {
    grid-template-columns: 1fr 1fr;
}

.ta-code-field {
    display: grid;
    gap: 8px;
}

.ta-code-field__label {
    font-size: 12px;
    font-weight: 700;
    color: #21516c;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ta-code-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.ta-code-input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(19, 42, 62, 0.2);
    background: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0f2538;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ta-code-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb, 0 0 0 4px rgba(37, 99, 235, 0.18);
    outline: 2px solid transparent;
    transform: translateY(-1px);
}

.ta-code-input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.ta-btn--later {
    background: #ffffff;
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: none;
}

.ta-shell[data-mode="register"] .ta-btn--later {
    background: #ffffff;
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: none;
}

.ta-btn--later:hover {
    transform: none;
    background: #f8fafc;
    box-shadow: none;
}

.ta-shell[data-mode="register"] .ta-btn--later:hover {
    background: #f8fafc;
    box-shadow: none;
}

.ta-register-state--warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: #fffbeb;
    box-shadow: 0 14px 28px rgba(180, 83, 9, 0.08);
}

.ta-register-state--warning .ta-register-state__icon {
    background: #fef3c7;
    color: #b45309;
}

.ta-register-state--warning .ta-register-state__badge {
    background: #fff7ed;
    color: #9a3412;
}

.ta-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 24px;
}

.ta-modal.is-open {
    display: flex;
}

.ta-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.ta-modal__dialog {
    position: relative;
    width: min(500px, 100%);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 26px 22px 22px;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.25);
    display: grid;
    gap: 14px;
    animation: taModalIn 0.24s ease-out;
}

.ta-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ta-modal__close:hover {
    background: #f1f5f9;
    border-color: rgba(100, 116, 139, 0.45);
}

.ta-modal__title {
    margin: 0;
    padding-right: 36px;
    font-size: 23px;
    line-height: 1.15;
}

.ta-modal__subtitle {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.ta-modal__actions {
    margin-top: 8px;
}

.ta-modal__actions .ta-btn {
    margin-top: 0;
}

.ta-modal__dialog form {
    display: grid;
    gap: 12px;
}

.ta-modal__dialog .ta-field input {
    height: 46px;
}

.ta-modal .ta-alert {
    margin: 2px 0;
}

.ta-form .ta-alert,
.ta-form .ta-field,
.ta-form .ta-row,
.ta-form .ta-register-state,
.ta-form .ta-consent,
.ta-form .ta-help,
.ta-form .ta-btn,
.ta-form .ta-alt {
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity;
}

.ta-form.is-active .ta-alert,
.ta-form.is-active .ta-field,
.ta-form.is-active .ta-row,
.ta-form.is-active .ta-register-state,
.ta-form.is-active .ta-consent,
.ta-form.is-active .ta-help,
.ta-form.is-active .ta-btn,
.ta-form.is-active .ta-alt {
    animation: taRise 0.35s ease both;
}

.ta-form.is-active .ta-alert { animation-delay: 0.02s; }
.ta-form.is-active .ta-field:nth-of-type(1) { animation-delay: 0.05s; }
.ta-form.is-active .ta-field:nth-of-type(2) { animation-delay: 0.09s; }
.ta-form.is-active .ta-field:nth-of-type(3) { animation-delay: 0.13s; }
.ta-form.is-active .ta-row { animation-delay: 0.06s; }
.ta-form.is-active .ta-register-state { animation-delay: 0.06s; }
.ta-form.is-active .ta-consent { animation-delay: 0.17s; }
.ta-form.is-active .ta-help { animation-delay: 0.17s; }
.ta-form.is-active .ta-btn { animation-delay: 0.21s; }
.ta-form.is-active .ta-alt { animation-delay: 0.25s; }

@keyframes taEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes taFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes taAurora {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 0% 0%;
    }
    50% {
        background-position: 0% 0%, 100% 0%, 0% 0%;
    }
}

@keyframes taModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes taShellGlow {
    0% {
        box-shadow:
            0 26px 58px rgba(15, 23, 42, 0.14),
            0 0 0 1px rgba(96, 165, 250, 0.14),
            0 10px 28px rgba(125, 211, 252, 0.14),
            0 34px 92px rgba(59, 130, 246, 0.14),
            0 64px 136px rgba(96, 165, 250, 0.16);
    }
    35% {
        box-shadow:
            0 26px 58px rgba(15, 23, 42, 0.16),
            0 0 0 1px rgba(125, 211, 252, 0.22),
            0 14px 38px rgba(125, 211, 252, 0.24),
            0 42px 120px rgba(56, 189, 248, 0.2),
            0 82px 180px rgba(37, 99, 235, 0.22);
    }
    70% {
        box-shadow:
            0 26px 58px rgba(15, 23, 42, 0.15),
            0 0 0 1px rgba(96, 165, 250, 0.24),
            0 18px 42px rgba(96, 165, 250, 0.22),
            0 48px 130px rgba(37, 99, 235, 0.24),
            0 92px 196px rgba(125, 211, 252, 0.26);
    }
    100% {
        box-shadow:
            0 26px 58px rgba(15, 23, 42, 0.14),
            0 0 0 1px rgba(59, 130, 246, 0.18),
            0 12px 32px rgba(96, 165, 250, 0.18),
            0 38px 108px rgba(37, 99, 235, 0.18),
            0 76px 158px rgba(125, 211, 252, 0.2);
    }
}

@keyframes taShellAura {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(0.98) rotate(-2deg);
        opacity: 0.74;
        filter: blur(40px) hue-rotate(0deg);
    }
    50% {
        transform: translate3d(1.5%, 2%, 0) scale(1.05) rotate(6deg);
        opacity: 0.92;
        filter: blur(46px) hue-rotate(8deg);
    }
    100% {
        transform: translate3d(-1%, 3%, 0) scale(1.01) rotate(-6deg);
        opacity: 0.8;
        filter: blur(42px) hue-rotate(2deg);
    }
}

@keyframes taShellBottomGlow {
    0% {
        transform: translate3d(-1.5%, 0, 0) scaleX(0.96) scaleY(0.94);
        opacity: 0.72;
        filter: blur(32px) hue-rotate(0deg);
    }
    50% {
        transform: translate3d(1.5%, 3%, 0) scaleX(1.05) scaleY(1.08);
        opacity: 0.9;
        filter: blur(38px) hue-rotate(8deg);
    }
    100% {
        transform: translate3d(0, 5%, 0) scaleX(1) scaleY(1.02);
        opacity: 0.8;
        filter: blur(35px) hue-rotate(2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ta-shell,
    .ta-shell::before,
    .ta-shell::after {
        animation: none !important;
    }
}

@media (max-width: 920px) {
    .ta-shell {
        grid-template-columns: 1fr;
        width: min(560px, 100%);
    }

    .ta-brand {
        padding: 32px 28px;
        border-right: 0;
        border-bottom: 1px solid #dbe5f3;
    }

    .ta-brand p {
        max-width: none;
    }
}

@media (max-width: 540px) {
    body {
        display: block;
        place-items: normal;
        min-height: auto;
        padding: 14px;
    }

    .ta-shell {
        width: 100%;
        margin: 0 auto;
        animation: taEnter 0.45s ease-out;
    }

    .ta-brand,
    .ta-forms {
        padding: 22px 18px;
    }

    .ta-logo {
        width: 68px;
        height: 68px;
        margin-bottom: 14px;
        border-radius: 18px;
        padding: 9px;
    }

    .ta-points {
        display: none;
    }

    .ta-brand-desc--desktop {
        display: none;
    }

    .ta-brand-desc--mobile {
        display: block;
        margin-bottom: 0;
        max-width: none;
    }

    .ta-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ta-title {
        font-size: 21px;
    }

    .ta-field input,
    .ta-modal__dialog .ta-field input {
        font-size: 16px;
    }

    .ta-form-stage {
        height: auto !important;
        transition: none;
        overflow: visible;
    }

    .ta-modal__dialog {
        padding: 20px 14px 14px;
    }

    .ta-register-state {
        padding: 14px;
        border-radius: 16px;
    }

    .ta-register-state__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .ta-register-state__badge {
        min-height: 30px;
        padding: 0 12px;
        font-size: 11px;
    }

    .ta-register-state__title {
        font-size: 17px;
    }

    .ta-code-inputs {
        gap: 6px;
    }

    .ta-code-input {
        height: 48px;
        border-radius: 12px;
        font-size: 20px;
    }

    .ta-register-actions--split {
        grid-template-columns: 1fr;
    }

    .ta-form.is-active .ta-alert,
    .ta-form.is-active .ta-field,
    .ta-form.is-active .ta-row,
    .ta-form.is-active .ta-register-state,
    .ta-form.is-active .ta-help,
    .ta-form.is-active .ta-btn,
    .ta-form.is-active .ta-alt {
        animation: none;
    }
}
