.auth-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    margin-bottom: 28px;
    background: #f4f4f4;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #3F3F3F;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}

.auth-tab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-tab:hover {
    color: #223C05;
}

.auth-tab.is-active {
    background: #fff;
    color: #223C05;
    box-shadow: 0 2px 8px rgba(34, 60, 5, .12);
}

.auth-tab:focus-visible,
.otp-digit:focus-visible,
.otp-link:focus-visible {
    outline: 2px solid #223C05;
    outline-offset: 2px;
}

.auth-panel[hidden] {
    display: none;
}

.auth-hint {
    margin: -8px 0 20px;
    color: #3F3F3F;
    font-size: 14px;
    line-height: 22px;
}

.auth-panel .iti {
    display: block;
    width: 100%;
}

.auth-panel .iti input {
    box-sizing: border-box;
    width: 100%;
}

.otp-box {
    text-align: center;
}

.otp-box .auth-hint {
    margin: 0 0 28px;
}

.otp-phone {
    color: #201E1E;
    font-weight: 700;
    white-space: nowrap;
}

.otp-digits {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.otp-digit {
    width: 52px;
    height: 60px;
    padding: 0;
    border: 2px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    color: #201E1E;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    transition: border-color .2s;
}

.otp-digit:focus {
    border-color: #223C05;
}

.otp-digits.is-disabled .otp-digit {
    background: #f4f4f4;
    color: #b0b0b0;
}

.otp-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    font-size: 14px;
}

.otp-link {
    padding: 0;
    border: 0;
    background: none;
    color: #223C05;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.otp-link:disabled {
    color: #9a9a9a;
    text-decoration: none;
    cursor: default;
}

@media (max-width: 480px) {
    .otp-digits {
        gap: 6px;
    }

    .otp-digit {
        width: 42px;
        height: 52px;
        font-size: 22px;
    }

    .auth-tab {
        font-size: 14px;
    }
}
