.btn-green {
    width: 100%;
    max-width: 420px;
    height: 52px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--green);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.btn-green:active {
    background: var(--green-pressed);
    transform: scale(0.985);
}

.btn-green:disabled {
    background: var(--border);
    color: var(--hint);
    transform: none;
}

.btn-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--green);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 14px;
    margin-top: 4px;
}

.btn-link:active {
    opacity: 0.65;
}

.btn-text-blue {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--blue);
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    padding: 14px 8px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.btn-text-blue:active {
    opacity: 0.65;
}

.btn-continue {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: #e8e8ed;
    color: #000000;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.btn-continue:active {
    background: #dcdce1;
    transform: scale(0.985);
}

.btn-continue:disabled {
    opacity: 0.55;
}

.code-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}

.code-row.email-row {
    gap: 7px;
}

.code-row.tg-code-row {
    gap: 8px;
    max-width: 300px;
    margin: 0 auto;
}

.code-cell {
    flex: 1;
    max-width: 52px;
    height: 56px;
    background: transparent;
    border: 1.5px solid #c7c7cc;
    border-radius: 12px;
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    caret-color: var(--blue);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.code-row.tg-code-row .code-cell {
    max-width: 48px;
    height: 52px;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}

.code-row.email-row .code-cell {
    max-width: 44px;
    height: 52px;
    font-size: 22px;
}

.code-cell:focus {
    outline: none;
    border-color: var(--blue);
    background: transparent;
    box-shadow: none;
}

.code-cell.shake {
    animation: shake 0.4s;
    border-color: var(--danger);
    background: #fff5f5;
}

.password-field,
.password-underline {
    width: 100%;
    height: 48px;
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid #c7c7cc;
    border-radius: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 400;
    text-align: left;
    margin-bottom: 8px;
    caret-color: var(--blue);
    padding: 8px 2px;
    transition: border-color 0.2s;
    box-shadow: none;
}

.password-field::placeholder,
.password-underline::placeholder {
    color: var(--hint);
    font-weight: 400;
}

.password-field:focus,
.password-underline:focus {
    outline: none;
    border-bottom-color: var(--blue);
    box-shadow: none;
}

.password-field.error,
.password-underline.error {
    border-bottom-color: var(--danger);
    animation: shake 0.4s;
}

.input-block {
    width: 100%;
}

.loader {
    width: 36px;
    height: 36px;
    border: 2.5px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin-bottom: 18px;
}

.loader-text {
    color: var(--muted);
    font-size: 16px;
}

.seed-field {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #c7c7cc;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    resize: vertical;
    caret-color: var(--blue);
    box-sizing: border-box;
    margin-bottom: 16px;
    font-family: inherit;
}

.seed-field:focus {
    outline: none;
    border-color: var(--blue);
}

.seed-field:disabled {
    opacity: 0.55;
}
